>>> py3-cymem: Checking sanity of /home/patrycja/aports/community/py3-cymem/APKBUILD... >>> py3-cymem: Cleaning up srcdir >>> py3-cymem: Cleaning up pkgdir >>> py3-cymem: Cleaning up tmpdir >>> py3-cymem: Fetching cymem-2.0.8.tar.gz::https://github.com/explosion/cymem/archive/v2.0.8.tar.gz >>> py3-cymem: Fetching cymem-2.0.8.tar.gz::https://github.com/explosion/cymem/archive/v2.0.8.tar.gz >>> py3-cymem: Checking sha512sums... cymem-2.0.8.tar.gz: OK >>> py3-cymem: Preparing build chroot... (1/109) Installing musl (1.2.5-r0) (2/109) Installing ca-certificates-bundle (20240226-r0) (3/109) Installing libcrypto3 (3.2.1-r1) (4/109) Installing libssl3 (3.2.1-r1) (5/109) Installing zlib (1.3.1-r0) (6/109) Installing apk-tools (2.14.3-r1) (7/109) Installing libattr (2.5.2-r0) (8/109) Installing attr (2.5.2-r0) (9/109) Installing libcap2 (2.69-r1) (10/109) Installing libcap-getcap (2.69-r1) (11/109) Installing fakeroot (1.33-r0) (12/109) Installing scanelf (1.3.7-r2) (13/109) Installing musl-utils (1.2.5-r0) (14/109) Installing libgcc (13.2.1_git20240309-r0) (15/109) Installing libstdc++ (13.2.1_git20240309-r0) (16/109) Installing lzip (1.24.1-r0) (17/109) Installing openssl (3.2.1-r1) (18/109) Installing patch (2.7.6-r10) (19/109) Installing pkgconf (2.2.0-r0) (20/109) Installing libacl (2.3.2-r0) (21/109) Installing tar (1.35-r2) (22/109) Installing busybox (1.36.1-r25) Executing busybox-1.36.1-r25.post-install (23/109) Installing ssl_client (1.36.1-r25) (24/109) Installing busybox-binsh (1.36.1-r25) (25/109) Installing abuild (3.12.0-r5) Executing abuild-3.12.0-r5.pre-install (26/109) Installing abuild-sudo (3.12.0-r5) (27/109) Installing alpine-baselayout-data (3.6.3-r0) (28/109) Installing alpine-baselayout (3.6.3-r0) Executing alpine-baselayout-3.6.3-r0.pre-install Executing alpine-baselayout-3.6.3-r0.post-install (29/109) Installing ifupdown-ng (0.12.1-r5) (30/109) Installing openrc (0.54-r0) Executing openrc-0.54-r0.post-install (31/109) Installing mdev-conf (4.6-r0) (32/109) Installing busybox-mdev-openrc (1.36.1-r25) (33/109) Installing alpine-conf (3.17.2-r0) (34/109) Installing alpine-keys (2.4-r1) (35/109) Installing alpine-release (3.20.0_alpha20240329-r0) (36/109) Installing busybox-openrc (1.36.1-r25) (37/109) Installing busybox-suid (1.36.1-r25) (38/109) Installing alpine-base (3.20.0_alpha20240329-r0) (39/109) Installing jansson (2.14-r4) (40/109) Installing zstd-libs (1.5.6-r0) (41/109) Installing binutils (2.42-r0) (42/109) Installing libmagic (5.45-r1) (43/109) Installing file (5.45-r1) (44/109) Installing libgomp (13.2.1_git20240309-r0) (45/109) Installing libatomic (13.2.1_git20240309-r0) (46/109) Installing gmp (6.3.0-r0) (47/109) Installing isl26 (0.26-r1) (48/109) Installing mpfr4 (4.2.1-r0) (49/109) Installing mpc1 (1.3.1-r1) (50/109) Installing gcc (13.2.1_git20240309-r0) (51/109) Installing libstdc++-dev (13.2.1_git20240309-r0) (52/109) Installing musl-dev (1.2.5-r0) (53/109) Installing g++ (13.2.1_git20240309-r0) (54/109) Installing make (4.4.1-r2) (55/109) Installing fortify-headers (1.1-r3) (56/109) Installing build-base (0.5-r3) (57/109) Installing hiredis (1.2.0-r0) (58/109) Installing libxxhash (0.8.2-r2) (59/109) Installing ccache (4.9.1-r0) (60/109) Installing libbz2 (1.0.8-r6) (61/109) Installing libexpat (2.6.2-r0) (62/109) Installing libffi (3.4.6-r0) (63/109) Installing gdbm (1.23-r1) (64/109) Installing xz-libs (5.6.1-r2) (65/109) Installing mpdecimal (4.0.0-r0) (66/109) Installing ncurses-terminfo-base (6.4_p20240309-r0) (67/109) Installing libncursesw (6.4_p20240309-r0) (68/109) Installing libpanelw (6.4_p20240309-r0) (69/109) Installing readline (8.2.10-r0) (70/109) Installing sqlite-libs (3.45.2-r0) (71/109) Installing python3 (3.12.2-r0) (72/109) Installing python3-pycache-pyc0 (3.12.2-r0) (73/109) Installing pyc (3.12.2-r0) (74/109) Installing cython-pyc (3.0.8-r0) (75/109) Installing python3-pyc (3.12.2-r0) (76/109) Installing cython (3.0.8-r0) (77/109) Installing ca-certificates (20240226-r0) (78/109) Installing brotli-libs (1.1.0-r2) (79/109) Installing c-ares (1.27.0-r0) (80/109) Installing libunistring (1.2-r0) (81/109) Installing libidn2 (2.3.7-r0) (82/109) Installing nghttp2-libs (1.60.0-r0) (83/109) Installing libpsl (0.21.5-r1) (84/109) Installing libcurl (8.7.1-r0) (85/109) Installing pcre2 (10.43-r0) (86/109) Installing git (2.44.0-r2) (87/109) Installing git-init-template (2.44.0-r2) (88/109) Installing py3-installer (0.7.0-r2) (89/109) Installing py3-installer-pyc (0.7.0-r2) (90/109) Installing py3-gpep517 (15-r2) (91/109) Installing py3-gpep517-pyc (15-r2) (92/109) Installing py3-iniconfig (2.0.0-r1) (93/109) Installing py3-iniconfig-pyc (2.0.0-r1) (94/109) Installing py3-parsing (3.1.2-r1) (95/109) Installing py3-parsing-pyc (3.1.2-r1) (96/109) Installing py3-packaging (24.0-r1) (97/109) Installing py3-packaging-pyc (24.0-r1) (98/109) Installing py3-pluggy (1.4.0-r1) (99/109) Installing py3-pluggy-pyc (1.4.0-r1) (100/109) Installing py3-py (1.11.0-r3) (101/109) Installing py3-py-pyc (1.11.0-r3) (102/109) Installing py3-pytest (8.1.1-r1) (103/109) Installing py3-pytest-pyc (8.1.1-r1) (104/109) Installing py3-setuptools (69.2.0-r1) (105/109) Installing py3-setuptools-pyc (69.2.0-r1) (106/109) Installing py3-wheel (0.42.0-r1) (107/109) Installing py3-wheel-pyc (0.42.0-r1) (108/109) Installing python3-dev (3.12.2-r0) (109/109) Installing tini (0.19.0-r3) Executing busybox-1.36.1-r25.trigger Executing ca-certificates-20240226-r0.trigger OK: 401 MiB in 109 packages >>> py3-cymem: Fetching cymem-2.0.8.tar.gz::https://github.com/explosion/cymem/archive/v2.0.8.tar.gz >>> py3-cymem: Checking sha512sums... cymem-2.0.8.tar.gz: OK >>> py3-cymem: Unpacking /var/cache/distfiles/cymem-2.0.8.tar.gz... 2024-04-06 19:22:57,350 gpep517 INFO Building wheel via backend setuptools.build_meta Compiling cymem/cymem.pyx because it changed. [1/1] Cythonizing cymem/cymem.pyx 2024-04-06 19:22:57,715 root INFO running bdist_wheel 2024-04-06 19:22:57,721 root INFO running build 2024-04-06 19:22:57,721 root INFO running build_py 2024-04-06 19:22:57,723 root INFO creating build 2024-04-06 19:22:57,723 root INFO creating build/lib.linux-x86_64-cpython-312 2024-04-06 19:22:57,723 root INFO creating build/lib.linux-x86_64-cpython-312/cymem 2024-04-06 19:22:57,723 root INFO copying cymem/about.py -> build/lib.linux-x86_64-cpython-312/cymem 2024-04-06 19:22:57,723 root INFO copying cymem/__init__.py -> build/lib.linux-x86_64-cpython-312/cymem 2024-04-06 19:22:57,723 root INFO creating build/lib.linux-x86_64-cpython-312/cymem/tests 2024-04-06 19:22:57,723 root INFO copying cymem/tests/test_import.py -> build/lib.linux-x86_64-cpython-312/cymem/tests 2024-04-06 19:22:57,723 root INFO copying cymem/tests/__init__.py -> build/lib.linux-x86_64-cpython-312/cymem/tests 2024-04-06 19:22:57,724 root INFO copying cymem/cymem.pyx -> build/lib.linux-x86_64-cpython-312/cymem 2024-04-06 19:22:57,724 root INFO copying cymem/__init__.pxd -> build/lib.linux-x86_64-cpython-312/cymem 2024-04-06 19:22:57,724 root INFO copying cymem/cymem.pxd -> build/lib.linux-x86_64-cpython-312/cymem 2024-04-06 19:22:57,724 root INFO running build_ext 2024-04-06 19:22:57,725 root INFO building 'cymem.cymem' extension 2024-04-06 19:22:57,725 root INFO creating build/temp.linux-x86_64-cpython-312 2024-04-06 19:22:57,725 root INFO creating build/temp.linux-x86_64-cpython-312/cymem 2024-04-06 19:22:57,725 root INFO gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -Os -fomit-frame-pointer -Os -fomit-frame-pointer -fPIC -I/usr/include/python3.12 -I/usr/include/python3.12 -c cymem/cymem.cpp -o build/temp.linux-x86_64-cpython-312/cymem/cymem.o -O3 -Wno-strict-prototypes -Wno-unused-function cc1plus: warning: command-line option '-Wno-strict-prototypes' is valid for C/ObjC but not for C++ cymem/cymem.cpp: In function 'PyObject* __Pyx_Import(PyObject*, PyObject*, int)': cymem/cymem.cpp:10037:48: warning: comparing the result of pointer addition '(((const char*)"cymem.cymem") + 5)' and NULL [-Waddress] 10037 | if (strchr(__Pyx_MODULE_NAME, '.') != NULL) { | ^ 2024-04-06 19:22:57,736 root INFO g++ -shared -Wl,--as-needed,-O1,--sort-common -Os -fomit-frame-pointer -Os -fomit-frame-pointer build/temp.linux-x86_64-cpython-312/cymem/cymem.o -L/usr/lib -o build/lib.linux-x86_64-cpython-312/cymem/cymem.cpython-312-x86_64-linux-musl.so 2024-04-06 19:22:57,755 wheel INFO installing to build/bdist.linux-x86_64/wheel 2024-04-06 19:22:57,755 root INFO running install 2024-04-06 19:22:57,760 root INFO running install_lib 2024-04-06 19:22:57,761 root INFO creating build/bdist.linux-x86_64 2024-04-06 19:22:57,761 root INFO creating build/bdist.linux-x86_64/wheel 2024-04-06 19:22:57,761 root INFO creating build/bdist.linux-x86_64/wheel/cymem 2024-04-06 19:22:57,761 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/__init__.pxd -> build/bdist.linux-x86_64/wheel/cymem 2024-04-06 19:22:57,762 root INFO creating build/bdist.linux-x86_64/wheel/cymem/tests 2024-04-06 19:22:57,762 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/tests/test_import.py -> build/bdist.linux-x86_64/wheel/cymem/tests 2024-04-06 19:22:57,762 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/tests/__init__.py -> build/bdist.linux-x86_64/wheel/cymem/tests 2024-04-06 19:22:57,762 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/cymem.cpython-312-x86_64-linux-musl.so -> build/bdist.linux-x86_64/wheel/cymem 2024-04-06 19:22:57,762 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/about.py -> build/bdist.linux-x86_64/wheel/cymem 2024-04-06 19:22:57,762 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/__init__.py -> build/bdist.linux-x86_64/wheel/cymem 2024-04-06 19:22:57,763 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/cymem.pyx -> build/bdist.linux-x86_64/wheel/cymem 2024-04-06 19:22:57,763 root INFO copying build/lib.linux-x86_64-cpython-312/cymem/cymem.pxd -> build/bdist.linux-x86_64/wheel/cymem 2024-04-06 19:22:57,763 root INFO running install_egg_info 2024-04-06 19:22:57,765 root INFO running egg_info 2024-04-06 19:22:57,765 root INFO creating cymem.egg-info 2024-04-06 19:22:57,766 root INFO writing cymem.egg-info/PKG-INFO 2024-04-06 19:22:57,766 root INFO writing dependency_links to cymem.egg-info/dependency_links.txt 2024-04-06 19:22:57,767 root INFO writing top-level names to cymem.egg-info/top_level.txt 2024-04-06 19:22:57,767 root INFO writing manifest file 'cymem.egg-info/SOURCES.txt' 2024-04-06 19:22:57,767 root INFO dependency /usr/include/python3.12/Python.h won't be automatically included in the manifest: the path must be relative 2024-04-06 19:22:57,768 root INFO reading manifest file 'cymem.egg-info/SOURCES.txt' 2024-04-06 19:22:57,768 root INFO reading manifest template 'MANIFEST.in' 2024-04-06 19:22:57,768 root INFO adding license file 'LICENSE' 2024-04-06 19:22:57,769 root INFO writing manifest file 'cymem.egg-info/SOURCES.txt' 2024-04-06 19:22:57,769 root INFO Copying cymem.egg-info to build/bdist.linux-x86_64/wheel/cymem-2.0.8-py3.12.egg-info 2024-04-06 19:22:57,769 root INFO running install_scripts 2024-04-06 19:22:57,771 wheel INFO creating build/bdist.linux-x86_64/wheel/cymem-2.0.8.dist-info/WHEEL 2024-04-06 19:22:57,772 wheel INFO creating '/home/patrycja/aports/community/py3-cymem/src/cymem-2.0.8/.dist/.tmp-pfs40wkc/cymem-2.0.8-cp312-cp312-linux_x86_64.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2024-04-06 19:22:57,772 wheel INFO adding 'cymem/__init__.pxd' 2024-04-06 19:22:57,772 wheel INFO adding 'cymem/__init__.py' 2024-04-06 19:22:57,772 wheel INFO adding 'cymem/about.py' 2024-04-06 19:22:57,773 wheel INFO adding 'cymem/cymem.cpython-312-x86_64-linux-musl.so' 2024-04-06 19:22:57,773 wheel INFO adding 'cymem/cymem.pxd' 2024-04-06 19:22:57,773 wheel INFO adding 'cymem/cymem.pyx' 2024-04-06 19:22:57,773 wheel INFO adding 'cymem/tests/__init__.py' 2024-04-06 19:22:57,773 wheel INFO adding 'cymem/tests/test_import.py' 2024-04-06 19:22:57,774 wheel INFO adding 'cymem-2.0.8.dist-info/LICENSE' 2024-04-06 19:22:57,774 wheel INFO adding 'cymem-2.0.8.dist-info/METADATA' 2024-04-06 19:22:57,774 wheel INFO adding 'cymem-2.0.8.dist-info/WHEEL' 2024-04-06 19:22:57,774 wheel INFO adding 'cymem-2.0.8.dist-info/top_level.txt' 2024-04-06 19:22:57,774 wheel INFO adding 'cymem-2.0.8.dist-info/RECORD' 2024-04-06 19:22:57,774 wheel INFO removing build/bdist.linux-x86_64/wheel 2024-04-06 19:22:57,774 gpep517 INFO The backend produced .dist/cymem-2.0.8-cp312-cp312-linux_x86_64.whl cymem-2.0.8-cp312-cp312-linux_x86_64.whl ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/patrycja/aports/community/py3-cymem/src/cymem-2.0.8 configfile: pyproject.toml collected 2 items cymem-off/tests/test_import.py EE [100%] ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_pool __________________________ name = '__init__', package = None def import_module(name, package=None): """Import a module. The 'package' argument is required when performing a relative import. It specifies the package to use as the anchor point from which to resolve the relative import to an absolute import. """ level = 0 if name.startswith('.'): if not package: raise TypeError("the 'package' argument is required to perform a " f"relative import for {name!r}") for character in name: if character != '.': break level += 1 > return _bootstrap._gcd_import(name[level:], package, level) /usr/lib/python3.12/importlib/__init__.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > from .about import * E ImportError: attempted relative import with no known parent package cymem-off/__init__.py:1: ImportError The above exception was the direct cause of the following exception: cls = func = . at 0x7f541a9823e0> when = 'setup' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3.12/site-packages/_pytest/runner.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/_pytest/runner.py:240: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3.12/site-packages/pluggy/_hooks.py:501: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3.12/site-packages/pluggy/_manager.py:119: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:85: in pytest_runtest_setup yield from unraisable_exception_runtest_hook() /usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:65: in unraisable_exception_runtest_hook yield /usr/lib/python3.12/site-packages/_pytest/logging.py:843: in pytest_runtest_setup yield from self._runtest_for(item, "setup") /usr/lib/python3.12/site-packages/_pytest/logging.py:832: in _runtest_for yield /usr/lib/python3.12/site-packages/_pytest/capture.py:878: in pytest_runtest_setup return (yield) /usr/lib/python3.12/site-packages/_pytest/threadexception.py:82: in pytest_runtest_setup yield from thread_exception_runtest_hook() /usr/lib/python3.12/site-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3.12/site-packages/_pytest/runner.py:158: in pytest_runtest_setup item.session._setupstate.setup(item) /usr/lib/python3.12/site-packages/_pytest/runner.py:515: in setup raise exc /usr/lib/python3.12/site-packages/_pytest/runner.py:512: in setup col.setup() /usr/lib/python3.12/site-packages/_pytest/python.py:690: in setup init_mod = importtestmodule(self.path / "__init__.py", self.config) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = PosixPath('/home/patrycja/aports/community/py3-cymem/src/cymem-2.0.8/cymem-off/__init__.py') config = <_pytest.config.Config object at 0x7f541ae5ca40> def importtestmodule( path: Path, config: Config, ): # We assume we are only called once per module. importmode = config.getoption("--import-mode") try: mod = import_path( path, mode=importmode, root=config.rootpath, consider_namespace_packages=config.getini("consider_namespace_packages"), ) except SyntaxError as e: raise nodes.Collector.CollectError( ExceptionInfo.from_current().getrepr(style="short") ) from e except ImportPathMismatchError as e: raise nodes.Collector.CollectError( "import file mismatch:\n" "imported module {!r} has this __file__ attribute:\n" " {}\n" "which is not the same as the test file we want to collect:\n" " {}\n" "HINT: remove __pycache__ / .pyc files and/or use a " "unique basename for your test file modules".format(*e.args) ) from e except ImportError as e: exc_info = ExceptionInfo.from_current() if config.getoption("verbose") < 2: exc_info.traceback = exc_info.traceback.filter(filter_traceback) exc_repr = ( exc_info.getrepr(style="short") if exc_info.traceback else exc_info.exconly() ) formatted_tb = str(exc_repr) > raise nodes.Collector.CollectError( f"ImportError while importing test module '{path}'.\n" "Hint: make sure your test modules/packages have valid Python names.\n" "Traceback:\n" f"{formatted_tb}" ) from e E _pytest.nodes.Collector.CollectError: ImportError while importing test module '/home/patrycja/aports/community/py3-cymem/src/cymem-2.0.8/cymem-off/__init__.py'. E Hint: make sure your test modules/packages have valid Python names. E Traceback: E /usr/lib/python3.12/importlib/__init__.py:90: in import_module E return _bootstrap._gcd_import(name[level:], package, level) E cymem-off/__init__.py:1: in E from .about import * E E ImportError: attempted relative import with no known parent package /usr/lib/python3.12/site-packages/_pytest/python.py:550: CollectError ________________________ ERROR at setup of test_address ________________________ name = '__init__', package = None def import_module(name, package=None): """Import a module. The 'package' argument is required when performing a relative import. It specifies the package to use as the anchor point from which to resolve the relative import to an absolute import. """ level = 0 if name.startswith('.'): if not package: raise TypeError("the 'package' argument is required to perform a " f"relative import for {name!r}") for character in name: if character != '.': break level += 1 > return _bootstrap._gcd_import(name[level:], package, level) /usr/lib/python3.12/importlib/__init__.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > from .about import * E ImportError: attempted relative import with no known parent package cymem-off/__init__.py:1: ImportError The above exception was the direct cause of the following exception: cls = func = . at 0x7f541a918180> when = 'setup' reraise = (, ) @classmethod def from_call( cls, func: Callable[[], TResult], when: Literal["collect", "setup", "call", "teardown"], reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when: The phase in which the function is called. :param reraise: Exception or exceptions that shall propagate if raised by the function, instead of being wrapped in the CallInfo. """ excinfo = None start = timing.time() precise_start = timing.perf_counter() try: > result: Optional[TResult] = func() /usr/lib/python3.12/site-packages/_pytest/runner.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.12/site-packages/_pytest/runner.py:240: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3.12/site-packages/pluggy/_hooks.py:501: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3.12/site-packages/pluggy/_manager.py:119: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:85: in pytest_runtest_setup yield from unraisable_exception_runtest_hook() /usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:65: in unraisable_exception_runtest_hook yield /usr/lib/python3.12/site-packages/_pytest/logging.py:843: in pytest_runtest_setup yield from self._runtest_for(item, "setup") /usr/lib/python3.12/site-packages/_pytest/logging.py:832: in _runtest_for yield /usr/lib/python3.12/site-packages/_pytest/capture.py:878: in pytest_runtest_setup return (yield) /usr/lib/python3.12/site-packages/_pytest/threadexception.py:82: in pytest_runtest_setup yield from thread_exception_runtest_hook() /usr/lib/python3.12/site-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3.12/site-packages/_pytest/runner.py:158: in pytest_runtest_setup item.session._setupstate.setup(item) /usr/lib/python3.12/site-packages/_pytest/runner.py:505: in setup raise exc /usr/lib/python3.12/site-packages/_pytest/runner.py:340: in from_call result: Optional[TResult] = func() /usr/lib/python3.12/site-packages/_pytest/runner.py:240: in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3.12/site-packages/pluggy/_hooks.py:501: in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) /usr/lib/python3.12/site-packages/pluggy/_manager.py:119: in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:85: in pytest_runtest_setup yield from unraisable_exception_runtest_hook() /usr/lib/python3.12/site-packages/_pytest/unraisableexception.py:65: in unraisable_exception_runtest_hook yield /usr/lib/python3.12/site-packages/_pytest/logging.py:843: in pytest_runtest_setup yield from self._runtest_for(item, "setup") /usr/lib/python3.12/site-packages/_pytest/logging.py:832: in _runtest_for yield /usr/lib/python3.12/site-packages/_pytest/capture.py:878: in pytest_runtest_setup return (yield) /usr/lib/python3.12/site-packages/_pytest/threadexception.py:82: in pytest_runtest_setup yield from thread_exception_runtest_hook() /usr/lib/python3.12/site-packages/_pytest/threadexception.py:63: in thread_exception_runtest_hook yield /usr/lib/python3.12/site-packages/_pytest/runner.py:158: in pytest_runtest_setup item.session._setupstate.setup(item) /usr/lib/python3.12/site-packages/_pytest/runner.py:515: in setup raise exc /usr/lib/python3.12/site-packages/_pytest/runner.py:512: in setup col.setup() /usr/lib/python3.12/site-packages/_pytest/python.py:690: in setup init_mod = importtestmodule(self.path / "__init__.py", self.config) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = PosixPath('/home/patrycja/aports/community/py3-cymem/src/cymem-2.0.8/cymem-off/__init__.py') config = <_pytest.config.Config object at 0x7f541ae5ca40> def importtestmodule( path: Path, config: Config, ): # We assume we are only called once per module. importmode = config.getoption("--import-mode") try: mod = import_path( path, mode=importmode, root=config.rootpath, consider_namespace_packages=config.getini("consider_namespace_packages"), ) except SyntaxError as e: raise nodes.Collector.CollectError( ExceptionInfo.from_current().getrepr(style="short") ) from e except ImportPathMismatchError as e: raise nodes.Collector.CollectError( "import file mismatch:\n" "imported module {!r} has this __file__ attribute:\n" " {}\n" "which is not the same as the test file we want to collect:\n" " {}\n" "HINT: remove __pycache__ / .pyc files and/or use a " "unique basename for your test file modules".format(*e.args) ) from e except ImportError as e: exc_info = ExceptionInfo.from_current() if config.getoption("verbose") < 2: exc_info.traceback = exc_info.traceback.filter(filter_traceback) exc_repr = ( exc_info.getrepr(style="short") if exc_info.traceback else exc_info.exconly() ) formatted_tb = str(exc_repr) > raise nodes.Collector.CollectError( f"ImportError while importing test module '{path}'.\n" "Hint: make sure your test modules/packages have valid Python names.\n" "Traceback:\n" f"{formatted_tb}" ) from e E _pytest.nodes.Collector.CollectError: ImportError while importing test module '/home/patrycja/aports/community/py3-cymem/src/cymem-2.0.8/cymem-off/__init__.py'. E Hint: make sure your test modules/packages have valid Python names. E Traceback: E /usr/lib/python3.12/importlib/__init__.py:90: in import_module E return _bootstrap._gcd_import(name[level:], package, level) E cymem-off/__init__.py:1: in E from .about import * E E ImportError: attempted relative import with no known parent package /usr/lib/python3.12/site-packages/_pytest/python.py:550: CollectError =========================== short test summary info ============================ ERROR cymem-off/tests/test_import.py::test_pool - _pytest.nodes.Collector.Col... ERROR cymem-off/tests/test_import.py::test_address - _pytest.nodes.Collector.... ============================== 2 errors in 0.18s =============================== >>> ERROR: py3-cymem: check failed >>> ERROR: py3-cymem: rootbld failed >>> py3-cymem: Cleaning up build chroot