___________ ERROR collecting f2py/tests/test_abstract_interface.py ____________
..\venv-test\lib\site-packages\_pytest\runner.py:341: in from_call
result: Optional[TResult] = func()
cls = <class '_pytest.runner.CallInfo'>
duration = 10.200289099999999
excinfo = <ExceptionInfo PermissionError(13, 'The process cannot access the file because it is being used by another process') tblen=24>
func = <function pytest_make_collect_report.<locals>.<lambda> at 0x0000027f94cf08e0>
precise_start = 26.6201467
precise_stop = 36.8204358
reraise = None
result = None
start = 1703177221.1964283
stop = 1703177231.3974376
when = 'collect'
..\venv-test\lib\site-packages\_pytest\runner.py:372: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
collector = <Module test_abstract_interface.py>
..\venv-test\lib\site-packages\_pytest\python.py:531: in collect
self._inject_setup_module_fixture()
__class__ = <class '_pytest.python.Module'>
self = <Module test_abstract_interface.py>
..\venv-test\lib\site-packages\_pytest\python.py:545: in _inject_setup_module_fixture
self.obj, ("setUpModule", "setup_module")
has_nose = True
self = <Module test_abstract_interface.py>
..\venv-test\lib\site-packages\_pytest\python.py:310: in obj
self._obj = obj = self._getobj()
obj = None
self = <Module test_abstract_interface.py>
..\venv-test\lib\site-packages\_pytest\python.py:528: in _getobj
return self._importtestmodule()
self = <Module test_abstract_interface.py>
..\venv-test\lib\site-packages\_pytest\python.py:617: in _importtestmodule
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
importmode = 'prepend'
self = <Module test_abstract_interface.py>
..\venv-test\lib\site-packages\_pytest\pathlib.py:565: in import_path
importlib.import_module(module_name)
mode = <ImportMode.prepend: 'prepend'>
module_name = 'numpy.f2py.tests.test_abstract_interface'
names = ['numpy', 'f2py', 'tests', 'test_abstract_interface']
p = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/venv-test/lib/site-packages/numpy/f2py/tests/test_abstract_interface.py')
path = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/venv-test/lib/site-packages/numpy/f2py/tests/test_abstract_interface.py')
pkg_path = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/venv-test/lib/site-packages/numpy')
pkg_root = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/venv-test/lib/site-packages')
root = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/test_cwd')
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
level = 0
name = 'numpy.f2py.tests.test_abstract_interface'
package = None
<frozen importlib._bootstrap>:1030: in _gcd_import
???
level = 0
name = 'numpy.f2py.tests.test_abstract_interface'
package = None
<frozen importlib._bootstrap>:1007: in _find_and_load
???
import_ = <function _gcd_import at 0x00007ff8f29dec70>
module = <object object at 0x00007ff8f29deb90>
name = 'numpy.f2py.tests.test_abstract_interface'
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
???
import_ = <function _gcd_import at 0x00007ff8f29dec70>
name = 'numpy.f2py.tests.test_abstract_interface'
parent = 'numpy.f2py.tests'
parent_module = <module 'numpy.f2py.tests' from 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\__init__.py'>
path = ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests']
spec = ModuleSpec(name='numpy.f2py.tests.test_abstract_interface', loader=<_pytest.assertion.rewrite.AssertionRewritingHook o...emp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\test_abstract_interface.py')
<frozen importlib._bootstrap>:680: in _load_unlocked
???
module = <module 'numpy.f2py.tests.test_abstract_interface' from 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\test_abstract_interface.py'>
spec = ModuleSpec(name='numpy.f2py.tests.test_abstract_interface', loader=<_pytest.assertion.rewrite.AssertionRewritingHook o...emp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\test_abstract_interface.py')
..\venv-test\lib\site-packages\_pytest\assertion\rewrite.py:178: in exec_module
exec(co, module.__dict__)
cache_dir = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/venv-test/lib/site-packages/numpy/f2py/tests/__pycache__')
cache_name = 'test_abstract_interface.pypy39-pytest-7.4.0.pyc'
co = <code object <module> at 0x0000027f929f2a18, file "C:\Users\runneradmin\AppData\Local\Temp\cibw-run-52rc4ryf\pp39-win_amd64\venv-test\lib\site-packages\numpy\f2py\tests\test_abstract_interface.py", line 1>
fn = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/venv-test/lib/site-packages/numpy/f2py/tests/test_abstract_interface.py')
module = <module 'numpy.f2py.tests.test_abstract_interface' from 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\test_abstract_interface.py'>
ok = True
pyc = WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/cibw-run-52rc4ryf/pp39-win_amd64/venv-test/lib/site-packages/numpy/f2py/tests/__pycache__/test_abstract_interface.pypy39-pytest-7.4.0.pyc')
self = <_pytest.assertion.rewrite.AssertionRewritingHook object at 0x0000027ffb8cf130>
state = <_pytest.assertion.AssertionState object at 0x0000027ffb8cfc58>
write = True
..\venv-test\lib\site-packages\numpy\f2py\tests\test_abstract_interface.py:4: in <module>
from . import util
Path = <class 'pathlib.Path'>
__builtins__ = <builtins>
__cached__ = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\__pycache__\\test_abstract_interface.pypy39.pyc'
__doc__ = None
__file__ = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\test_abstract_interface.py'
__loader__ = <_pytest.assertion.rewrite.AssertionRewritingHook object at 0x0000027ffb8cf130>
__name__ = 'numpy.f2py.tests.test_abstract_interface'
__package__ = 'numpy.f2py.tests'
__spec__ = ModuleSpec(name='numpy.f2py.tests.test_abstract_interface', loader=<_pytest.assertion.rewrite.AssertionRewritingHook o...emp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\test_abstract_interface.py')
pytest = <module 'pytest' from 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\pytest\\__init__.py'>
textwrap = <module 'textwrap' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\textwrap.py'>
..\venv-test\lib\site-packages\numpy\f2py\tests\util.py:276: in <module>
checker.check_compilers()
CompilerChecker = <class 'numpy.f2py.tests.util.CompilerChecker'>
IS_WASM = False
MesonBackend = <class 'numpy.f2py._backends._meson.MesonBackend'>
Path = <class 'pathlib.Path'>
__builtins__ = <builtins>
__cached__ = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\__pycache__\\util.pypy39.pyc'
__doc__ = '\nUtility functions for\n\n- building and importing modules on test time, using a temporary location\n- detecting if compilers are present\n- determining paths to tests\n\n'
__file__ = 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\util.py'
__loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x0000027f94d094b0>
__name__ = 'numpy.f2py.tests.util'
__package__ = 'numpy.f2py.tests'
__spec__ = ModuleSpec(name='numpy.f2py.tests.util', loader=<_frozen_importlib_external.SourceFileLoader object at 0x0000027f94d09...\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\f2py\\tests\\util.py')
_cleanup = <function _cleanup at 0x0000027f94d42a20>
_memoize = <function _memoize at 0x0000027f94d42c00>
_module_dir = None
_module_num = 5403
asunicode = <function asunicode at 0x0000027ffbe4d560>
atexit = <module 'atexit' (built-in)>
build_code = <function _memoize.<locals>.wrapper at 0x0000027f94d42d40>
build_module = <function _memoize.<locals>.wrapper at 0x0000027f94d42ca0>
check_language = <function check_language at 0x0000027f94d42340>
checker = <numpy.f2py.tests.util.CompilerChecker object at 0x0000027f94d40950>
concurrent = <module 'concurrent' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\concurrent\\__init__.py'>
contextlib = <module 'contextlib' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\contextlib.py'>
fortran77_code = "\nC Example Fortran 77 code\n PROGRAM HELLO\n PRINT *, 'Hello, Fortran 77!'\n END\n"
fortran90_code = "\n! Example Fortran 90 code\nprogram hello90\n type :: greeting\n character(len=20) :: text\n end type greeting\n\n type(greeting) :: greet\n greet%text = 'hello, fortran 90!'\n print *, greet%text\nend program hello90\n"
get_module_dir = <function get_module_dir at 0x0000027f94d42ac0>
get_temp_module_name = <function get_temp_module_name at 0x0000027f94d42b60>
glob = <module 'glob' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\glob.py'>
import_module = <function import_module at 0x0000027ffa535e20>
numpy = <module 'numpy' from 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\numpy\\__init__.py'>
os = <module 'os' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\os.py'>
pytest = <module 'pytest' from 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\lib\\site-packages\\pytest\\__init__.py'>
re = <module 're' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\re.py'>
shutil = <module 'shutil' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\shutil.py'>
subprocess = <module 'subprocess' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\subprocess.py'>
sys = <module 'sys' (built-in)>
tempfile = <module 'tempfile' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\tempfile.py'>
temppath = <function temppath at 0x0000027f85bf6020>
textwrap = <module 'textwrap' from 'C:\\Users\\runneradmin\\AppData\\Local\\pypa\\cibuildwheel\\Cache\\pypy3.9-v7.3.12-win64\\Lib\\textwrap.py'>
..\venv-test\lib\site-packages\numpy\f2py\tests\util.py:269: in check_compilers
self.has_c = futures[0].result()
executor = <concurrent.futures.thread.ThreadPoolExecutor object at 0x0000027f94d40988>
futures = [<Future at 0x27f94d409c0 state=finished raised PermissionError>, <Future at 0x27f94d40870 state=finished returned bool>, <Future at 0x27f94d40598 state=finished returned bool>]
self = <numpy.f2py.tests.util.CompilerChecker object at 0x0000027f94d40950>
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\concurrent\futures\_base.py:446: in result
return self.__get_result()
self = None
timeout = None
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\concurrent\futures\_base.py:391: in __get_result
raise self._exception
self = None
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\concurrent\futures\thread.py:58: in run
result = self.fn(*self.args, **self.kwargs)
self = None
..\venv-test\lib\site-packages\numpy\f2py\tests\util.py:229: in check_language
shutil.rmtree(tmpdir)
code_snippet = None
f = <_io.TextIOWrapper name='C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4\\meson.build' mode='w' encoding='UTF-8'>
lang = 'c'
meson_file = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4\\meson.build'
runmeson = CompletedProcess(args=['meson', 'setup', 'btmp'], returncode=0, stdout=b'The Meson build system\r\nVersion: 1.3.0\r\nS...\\runneradmin\\AppData\\Local\\Temp\\cibw-run-52rc4ryf\\pp39-win_amd64\\venv-test\\Scripts\\ninja.EXE\r\n', stderr=b'')
tmpdir = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4'
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\shutil.py:759: in rmtree
return _rmtree_unsafe(path, onerror)
ignore_errors = False
onerror = <function rmtree.<locals>.onerror at 0x0000027f94d42660>
path = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4'
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\shutil.py:629: in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
entries = [<DirEntry 'btmp'>, <DirEntry 'meson.build'>]
entry = <DirEntry 'meson.build'>
fullname = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4\\meson.build'
onerror = <function rmtree.<locals>.onerror at 0x0000027f94d42660>
path = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4'
scandir_it = <posix.ScandirIterator object at 0x0000027f94d21910>
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\shutil.py:627: in _rmtree_unsafe
os.unlink(fullname)
E PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4\\meson.build'
entries = [<DirEntry 'btmp'>, <DirEntry 'meson.build'>]
entry = <DirEntry 'meson.build'>
fullname = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4\\meson.build'
onerror = <function rmtree.<locals>.onerror at 0x0000027f94d42660>
path = 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4'
scandir_it = <posix.ScandirIterator object at 0x0000027f94d21910>
____________________________ ERROR collecting gw1 _____________________________
Different tests were collected between gw3 and gw1. The difference is:
--- gw3
+++ gw1
@@ -32556,8 +32556,6 @@
distutils/tests/test_system_info.py::TestSystemInfoReading::test_compile2
distutils/tests/test_system_info.py::TestSystemInfoReading::test_overrides
distutils/tests/test_system_info.py::test_distutils_parse_env_order
-f2py/tests/test_abstract_interface.py::TestAbstractInterface::test_abstract_interface
-f2py/tests/test_abstract_interface.py::TestAbstractInterface::test_parse_abstract_interface
f2py/tests/test_array_from_pyobj.py::TestIntent::test_in_out
f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2seq[BOOL]
f2py/tests/test_array_from_pyobj.py::TestSharedMemory::test_in_from_2casttype[BOOL]
C:\Users\runneradmin\AppData\Local\Temp\cibw-run-52rc4ryf\pp39-win_amd64\venv-test\lib\site-packages\numpy\_pytesttester.py:143: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
from numpy.distutils import cpuinfo
To see why this happens see Known limitations in documentation
============================== warnings summary ===============================
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
C:\Users\runneradmin\AppData\Local\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127: UserWarning: The numpy.array_api submodule is still experimental. See NEP 47.
return _bootstrap._gcd_import(name[level:], package, level)
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
..\..\..\..\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127
C:\Users\runneradmin\AppData\Local\pypa\cibuildwheel\Cache\pypy3.9-v7.3.12-win64\Lib\importlib\__init__.py:127: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
return _bootstrap._gcd_import(name[level:], package, level)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ===========================
ERROR f2py/tests/test_abstract_interface.py - PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\tmpye0_j0h4\\meson.build'
ERROR gw1
8 warnings, 2 errors in 55.76s
Error: Command bash D:\a\numpy\numpy/tools/wheels/cibw_test_command.sh D:\a\numpy\numpy failed with code 1. None