>>> py3-glob2: Checking sanity of /home/patrycja/aports/testing/py3-glob2/APKBUILD... >>> py3-glob2: Cleaning up srcdir >>> py3-glob2: Cleaning up pkgdir >>> py3-glob2: Cleaning up tmpdir >>> py3-glob2: Fetching https://files.pythonhosted.org/packages/source/g/glob2/glob2-0.7.tar.gz >>> py3-glob2: Fetching https://files.pythonhosted.org/packages/source/g/glob2/glob2-0.7.tar.gz >>> py3-glob2: Checking sha512sums... glob2-0.7.tar.gz: OK >>> py3-glob2: Preparing build chroot... (1/100) Installing musl (1.2.5-r0) (2/100) Installing ca-certificates-bundle (20240226-r0) (3/100) Installing libcrypto3 (3.2.1-r2) (4/100) Installing libssl3 (3.2.1-r2) (5/100) Installing zlib (1.3.1-r0) (6/100) Installing apk-tools (2.14.3-r1) (7/100) Installing libattr (2.5.2-r0) (8/100) Installing attr (2.5.2-r0) (9/100) Installing libcap2 (2.69-r1) (10/100) Installing libcap-getcap (2.69-r1) (11/100) Installing fakeroot (1.33-r0) (12/100) Installing scanelf (1.3.7-r2) (13/100) Installing musl-utils (1.2.5-r0) (14/100) Installing libgcc (13.2.1_git20240309-r0) (15/100) Installing libstdc++ (13.2.1_git20240309-r0) (16/100) Installing lzip (1.24.1-r0) (17/100) Installing openssl (3.2.1-r2) (18/100) Installing patch (2.7.6-r10) (19/100) Installing pkgconf (2.2.0-r0) (20/100) Installing libacl (2.3.2-r0) (21/100) Installing tar (1.35-r2) (22/100) Installing busybox (1.36.1-r25) Executing busybox-1.36.1-r25.post-install (23/100) Installing ssl_client (1.36.1-r25) (24/100) Installing busybox-binsh (1.36.1-r25) (25/100) Installing abuild (3.12.0-r5) Executing abuild-3.12.0-r5.pre-install (26/100) Installing abuild-sudo (3.12.0-r5) (27/100) Installing alpine-baselayout-data (3.6.3-r0) (28/100) 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/100) Installing ifupdown-ng (0.12.1-r5) (30/100) Installing openrc (0.54-r1) Executing openrc-0.54-r1.post-install (31/100) Installing mdev-conf (4.6-r0) (32/100) Installing busybox-mdev-openrc (1.36.1-r25) (33/100) Installing alpine-conf (3.17.2-r0) (34/100) Installing alpine-keys (2.4-r1) (35/100) Installing alpine-release (3.20.0_alpha20240329-r0) (36/100) Installing busybox-openrc (1.36.1-r25) (37/100) Installing busybox-suid (1.36.1-r25) (38/100) Installing alpine-base (3.20.0_alpha20240329-r0) (39/100) Installing jansson (2.14-r4) (40/100) Installing zstd-libs (1.5.6-r0) (41/100) Installing binutils (2.42-r0) (42/100) Installing libmagic (5.45-r1) (43/100) Installing file (5.45-r1) (44/100) Installing libgomp (13.2.1_git20240309-r0) (45/100) Installing libatomic (13.2.1_git20240309-r0) (46/100) Installing gmp (6.3.0-r0) (47/100) Installing isl26 (0.26-r1) (48/100) Installing mpfr4 (4.2.1-r0) (49/100) Installing mpc1 (1.3.1-r1) (50/100) Installing gcc (13.2.1_git20240309-r0) (51/100) Installing libstdc++-dev (13.2.1_git20240309-r0) (52/100) Installing musl-dev (1.2.5-r0) (53/100) Installing g++ (13.2.1_git20240309-r0) (54/100) Installing make (4.4.1-r2) (55/100) Installing fortify-headers (1.1-r3) (56/100) Installing build-base (0.5-r3) (57/100) Installing hiredis (1.2.0-r0) (58/100) Installing libxxhash (0.8.2-r2) (59/100) Installing ccache (4.9.1-r0) (60/100) Installing ca-certificates (20240226-r0) (61/100) Installing brotli-libs (1.1.0-r2) (62/100) Installing c-ares (1.28.1-r0) (63/100) Installing libunistring (1.2-r0) (64/100) Installing libidn2 (2.3.7-r0) (65/100) Installing nghttp2-libs (1.61.0-r0) (66/100) Installing libpsl (0.21.5-r1) (67/100) Installing libcurl (8.7.1-r0) (68/100) Installing libexpat (2.6.2-r0) (69/100) Installing pcre2 (10.43-r0) (70/100) Installing git (2.44.0-r2) (71/100) Installing git-init-template (2.44.0-r2) (72/100) Installing libbz2 (1.0.8-r6) (73/100) Installing libffi (3.4.6-r0) (74/100) Installing gdbm (1.23-r1) (75/100) Installing xz-libs (5.6.1-r2) (76/100) Installing mpdecimal (4.0.0-r0) (77/100) Installing ncurses-terminfo-base (6.4_p20240330-r0) (78/100) Installing libncursesw (6.4_p20240330-r0) (79/100) Installing libpanelw (6.4_p20240330-r0) (80/100) Installing readline (8.2.10-r0) (81/100) Installing sqlite-libs (3.45.2-r0) (82/100) Installing python3 (3.12.2-r0) (83/100) Installing python3-pycache-pyc0 (3.12.2-r0) (84/100) Installing pyc (3.12.2-r0) (85/100) Installing py3-iniconfig-pyc (2.0.0-r1) (86/100) Installing py3-parsing (3.1.2-r1) (87/100) Installing py3-parsing-pyc (3.1.2-r1) (88/100) Installing py3-packaging (24.0-r1) (89/100) Installing py3-packaging-pyc (24.0-r1) (90/100) Installing py3-pluggy (1.4.0-r1) (91/100) Installing py3-pluggy-pyc (1.4.0-r1) (92/100) Installing py3-py (1.11.0-r3) (93/100) Installing py3-py-pyc (1.11.0-r3) (94/100) Installing py3-pytest-pyc (8.1.1-r1) (95/100) Installing python3-pyc (3.12.2-r0) (96/100) Installing py3-iniconfig (2.0.0-r1) (97/100) Installing py3-pytest (8.1.1-r1) (98/100) Installing py3-setuptools (69.2.0-r1) (99/100) Installing py3-setuptools-pyc (69.2.0-r1) (100/100) Installing tini (0.19.0-r3) Executing busybox-1.36.1-r25.trigger Executing ca-certificates-20240226-r0.trigger OK: 293 MiB in 100 packages >>> py3-glob2: Fetching https://files.pythonhosted.org/packages/source/g/glob2/glob2-0.7.tar.gz >>> py3-glob2: Checking sha512sums... glob2-0.7.tar.gz: OK >>> py3-glob2: Unpacking /var/cache/distfiles/glob2-0.7.tar.gz... running build running build_py creating build creating build/lib creating build/lib/glob2 copying glob2/fnmatch.py -> build/lib/glob2 copying glob2/impl.py -> build/lib/glob2 copying glob2/__init__.py -> build/lib/glob2 copying glob2/compat.py -> build/lib/glob2 ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/patrycja/aports/testing/py3-glob2/src/glob2-0.7 collected 13 items test.py ...FFFFFFFF.. [100%] =================================== FAILURES =================================== ______________________________ TestPatterns.test _______________________________ self = def test(self): > self.makedirs('dir1', 'dir22') test.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , names = ('dir1', 'dir22') name = 'dir1' def makedirs(self, *names): for name in names: > os.makedirs(path.join(self.basedir, name)) E AttributeError: 'TestPatterns' object has no attribute 'basedir'. Did you mean: 'makedirs'? test.py:65: AttributeError _________________________ TestRecursive.test_recursive _________________________ self = def test_recursive(self): # ** includes the current directory > assert sorted(glob2.glob('**/*.py', True)) == [ ('a/bar.py', ('a', 'bar')), ('a/foo/hello.py', ('a/foo', 'hello')), ('b/bar.py', ('b', 'bar')), ('file.py', ('', 'file')), ] E AssertionError: assert [('build/lib/...ompat')), ...] == [('a/bar.py',...('', 'file'))] E E At index 0 diff: ('build/lib/glob2/__init__.py', ('build/lib/glob2', '__init__')) != ('a/bar.py', ('a', 'bar')) E Left contains 6 more items, first extra item: ('glob2/__init__.py', ('glob2', '__init__')) E Use -v to get more diff test.py:92: AssertionError __________________ TestRecursive.test_exclude_root_directory ___________________ self = def test_exclude_root_directory(self): # If files from the root directory should not be included, # this is the syntax to use: > assert sorted(glob2.glob('*/**/*.py', True)) == [ ('a/bar.py', ('a', '', 'bar')), ('a/foo/hello.py', ('a', 'foo', 'hello')), ('b/bar.py', ('b', '', 'bar')) ] E AssertionError: assert [('build/lib/...ompat')), ...] == [('a/bar.py',..., '', 'bar'))] E E At index 0 diff: ('build/lib/glob2/__init__.py', ('build', 'lib/glob2', '__init__')) != ('a/bar.py', ('a', '', 'bar')) E Left contains 5 more items, first extra item: ('build/lib/glob2/impl.py', ('build', 'lib/glob2', 'impl')) E Use -v to get more diff test.py:102: AssertionError _____________________ TestRecursive.test_only_directories ______________________ self = def test_only_directories(self): # Return directories only > assert sorted(glob2.glob('**/', True)) == [ ('a/', ('a',)), ('a/foo/', ('a/foo',)), ('b/', ('b',)), ] E AssertionError: assert [('__pycache_...lob2',)), ...] == [('a/', ('a',...'b/', ('b',))] E E At index 0 diff: ('__pycache__/', ('__pycache__',)) != ('a/', ('a',)) E Left contains 4 more items, first extra item: ('build/lib/glob2/', ('build/lib/glob2',)) E Use -v to get more diff test.py:110: AssertionError ________________________ TestRecursive.test_parent_dir _________________________ self = def test_parent_dir(self): # Make sure ".." can be used > os.chdir(path.join(self.basedir, 'b')) E AttributeError: 'TestRecursive' object has no attribute 'basedir'. Did you mean: 'makedirs'? test.py:118: AttributeError ______________________ TestRecursive.test_fixed_basename _______________________ self = def test_fixed_basename(self): > assert sorted(glob2.glob('**/bar.py', True)) == [ ('a/bar.py', ('a',)), ('b/bar.py', ('b',)), ] E AssertionError: assert [] == [('a/bar.py',....py', ('b',))] E E Right contains 2 more items, first extra item: ('a/bar.py', ('a',)) E Use -v to get more diff test.py:125: AssertionError _________________________ TestRecursive.test_all_files _________________________ self = def test_all_files(self): # Return all files > os.chdir(path.join(self.basedir, 'a')) E AttributeError: 'TestRecursive' object has no attribute 'basedir'. Did you mean: 'makedirs'? test.py:132: AttributeError ________________ TestRecursive.test_root_directory_not_returned ________________ self = def test_root_directory_not_returned(self): # Ensure that a certain codepath (when the basename is globbed # with ** as opposed to the dirname) does not cause # the root directory to be part of the result. # -> b/ is NOT in the result! > assert sorted(glob2.glob('b/**', True)) == [ ('b/bar.py', ('bar.py',)), ('b/py', ('py',)), ] E AssertionError: assert [] == [('b/bar.py',...py', ('py',))] E E Right contains 2 more items, first extra item: ('b/bar.py', ('bar.py',)) E Use -v to get more diff test.py:145: AssertionError =============================== warnings summary =============================== glob2/fnmatch.py:141 /home/patrycja/aports/testing/py3-glob2/src/glob2-0.7/glob2/fnmatch.py:141: SyntaxWarning: invalid escape sequence '\Z' return '(?ms)' + res + '\Z' -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test.py::TestPatterns::test - AttributeError: 'TestPatterns' object ha... FAILED test.py::TestRecursive::test_recursive - AssertionError: assert [('bui... FAILED test.py::TestRecursive::test_exclude_root_directory - AssertionError: ... FAILED test.py::TestRecursive::test_only_directories - AssertionError: assert... FAILED test.py::TestRecursive::test_parent_dir - AttributeError: 'TestRecursi... FAILED test.py::TestRecursive::test_fixed_basename - AssertionError: assert [... FAILED test.py::TestRecursive::test_all_files - AttributeError: 'TestRecursiv... FAILED test.py::TestRecursive::test_root_directory_not_returned - AssertionEr... ==================== 8 failed, 5 passed, 1 warning in 0.05s ==================== >>> ERROR: py3-glob2: check failed >>> ERROR: py3-glob2: rootbld failed >>> py3-glob2: Cleaning up build chroot