When running pytest error:
C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ Scripts \ python exe E:/workspace2/testpytest/run_case/run_case py
Traceback (the most recent call last) :
The File "E:/workspace2/testpytest/run_case/run_case py", line 4, the in & lt; module>
Pytest. The main ()
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ config \ set py", line 72, the main in
The config=_prepareconfig (args, plugins)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ config \ set py", line 223, in _prepareconfig
Pluginmanager=pluginmanager, args=args
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ hooks py", line 286, in __call__
Return the self. _hookexec (self, self. Get_hookimpls (), kwargs)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ manager py", line 93, in _hookexec
Return the self. _inner_hookexec (hook, the methods, kwargs)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ manager py", line 87, in & lt; Lambda>
Firstresult=hook. Spec. Opts. Get (" firstresult ") if the hooks. The spec else False,
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ callers py", line 203, in _multicall
Gen. Send (outcome)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ helpconfig py", line 89, in pytest_cmdline_parse
The config=outcome. Get_result ()
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ callers py", line 80, in get_result
Raise the ex [1]. With_traceback (ex [2])
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ callers py", line 187, in _multicall
Res=hook_impl. Function (* args)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ config \ set py", line 742, in pytest_cmdline_parse
The self. The parse (args)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ config \ set py", line 948, in the parse
Self. _preparse (args, addopts=addopts)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ config \ set py", line 906, in _preparse
Early_config=self, args=args, parser=self. _parser
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ hooks py", line 286, in __call__
Return the self. _hookexec (self, self. Get_hookimpls (), kwargs)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ manager py", line 93, in _hookexec
Return the self. _inner_hookexec (hook, the methods, kwargs)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ manager py", line 87, in & lt; Lambda>
Firstresult=hook. Spec. Opts. Get (" firstresult ") if the hooks. The spec else False,
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ callers py", line 208, in _multicall
Return outcome. Get_result ()
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ callers py", line 80, in get_result
Raise the ex [1]. With_traceback (ex [2])
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ pluggy \ callers py", line 182, in _multicall
Next (gen) # first yield
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ the capture py", line, 54 in pytest_load_initial_conftests
Capman. Start_global_capturing ()
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ the capture py", line 112, in start_global_capturing
Self. _global_capturing=self. _getcapture (self _method)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ the capture py", line 88, in _getcapture
Return MultiCapture (out=True, err=True, the Capture=FDCapture)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ the capture py", line 455, in __init__
Self. In_=the Capture (0)
The File "C: \ Users \ \. 18008450 virtualenvs \ workspace2-2 rgybni9 \ lib \ site - packages \ _pytest \ the capture py", line 554, in __init__
Tmpfile=open (OS devnull, "r")
No FileNotFoundError: [Errno 2] to a file or directory: 'nul'
The Process finished with exit code 1