C:\Users\Administrator.000>pytest
================= test session starts =================
platform win32 -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: C:\Users\Administrator.000
collected 0 items / 1 error
==================== ERRORS ====================
____________________ ERROR collecting test session ________________________
appdata\local\programs\python\python38\lib\site-packages\py_error.py:66: in checked_call
return func(*args, **kwargs)
E PermissionError: [WinError 5] 拒绝访问。: 'C:\Users\Administrator.000\AppData\Local\Application Data'
During handling of the above exception, another exception occurred:
appdata\local\programs\python\python38\lib\site-packages\py_path\common.py:383: in visit
for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
appdata\local\programs\python\python38\lib\site-packages\py_path\common.py:435: in gen
for p in self.gen(subdir):
appdata\local\programs\python\python38\lib\site-packages\py_path\common.py:435: in gen
for p in self.gen(subdir):
appdata\local\programs\python\python38\lib\site-packages\py_path\common.py:435: in gen
for p in self.gen(subdir):
appdata\local\programs\python\python38\lib\site-packages\py_path\common.py:420: in gen
entries = path.listdir()
appdata\local\programs\python\python38\lib\site-packages\py_path\local.py:395: in listdir
names = py.error.checked_call(os.listdir, self.strpath)
appdata\local\programs\python\python38\lib\site-packages\py_error.py:86: in checked_call
raise cls("%s%r" % (func.__name__, args))
E py.error.EBUSY: [Resource device]: listdir('C:\Users\Administrator.000\AppData\Local\Application Data',)
============= short test summary info =================
ERROR - py.error.EBUSY: [Resource device]: listdir('C:\Users\Administrator.000\AppData\Local\Application Data',)
!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!