Traceback (most recent call last):
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\obspy\core\util\misc.py", line 390, in TemporaryWorkingDirectory
yield tempdir
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\obspy\imaging\tests\test_scan.py", line 80, in test_scan_dir_no_permission
pytest.skip(
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\outcomes.py", line 159, in skip
raise Skipped(msg=reason, allow_module_level=allow_module_level)
Skipped: unable to remove read permission from a test file for testing purposes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\obspy\core\util\misc.py", line 394, in TemporaryWorkingDirectory
shutil.rmtree(tempdir)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\shutil.py", line 781, in rmtree
return _rmtree_unsafe(path, onexc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\shutil.py", line 629, in _rmtree_unsafe
onexc(os.rmdir, fullname, err)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\shutil.py", line 627, in _rmtree_unsafe
os.rmdir(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\obspy-iq489p47\\no_permission_dir'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\runner.py", line 341, in from_call
result: Optional[TResult] = func()
^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\runner.py", line 241, in <lambda>
lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 182, in _multicall
return outcome.get_result()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_result.py", line 100, in get_result
raise exc.with_traceback(exc.__traceback__)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 167, in _multicall
teardown.throw(outcome._exception)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\threadexception.py", line 87, in pytest_runtest_call
yield from thread_exception_runtest_hook()
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\threadexception.py", line 63, in thread_exception_runtest_hook
yield
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 167, in _multicall
teardown.throw(outcome._exception)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\unraisableexception.py", line 90, in pytest_runtest_call
yield from unraisable_exception_runtest_hook()
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\unraisableexception.py", line 65, in unraisable_exception_runtest_hook
yield
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 167, in _multicall
teardown.throw(outcome._exception)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\logging.py", line 850, in pytest_runtest_call
yield from self._runtest_for(item, "call")
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\logging.py", line 833, in _runtest_for
yield
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 167, in _multicall
teardown.throw(outcome._exception)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\capture.py", line 878, in pytest_runtest_call
return (yield)
^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 167, in _multicall
teardown.throw(outcome._exception)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\skipping.py", line 257, in pytest_runtest_call
return (yield)
^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\runner.py", line 183, in pytest_runtest_call
raise e
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\runner.py", line 173, in pytest_runtest_call
item.runtest()
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\python.py", line 1632, in runtest
self.ihook.pytest_pyfunc_call(pyfuncitem=self)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\pluggy\_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\_pytest\python.py", line 162, in pytest_pyfunc_call
result = testfunction(**testargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\obspy\imaging\tests\test_scan.py", line 59, in test_scan_dir_no_permission
with TemporaryWorkingDirectory():
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "C:\Users\runneradmin\miniconda3\envs\test\Lib\site-packages\obspy\core\util\misc.py", line 399, in TemporaryWorkingDirectory
warnings.warn(e.__repr__())
UserWarning: PermissionError(13, 'Access is denied')