>>> py3-glob2: Building testing/py3-glob2 0.7-r5 (using abuild 3.13.0-r3) started Sat, 13 Jul 2024 12:51:02 +0000 >>> py3-glob2: Checking sanity of /home/buildozer/aports/testing/py3-glob2/APKBUILD... >>> py3-glob2: Analyzing dependencies... >>> py3-glob2: Installing for build: build-base python3 py3-setuptools py3-pytest (1/27) Installing libbz2 (1.0.8-r6) (2/27) Installing libffi (3.4.6-r0) (3/27) Installing gdbm (1.24-r0) (4/27) Installing xz-libs (5.6.2-r0) (5/27) Installing mpdecimal (4.0.0-r0) (6/27) Installing libpanelw (6.5_p20240601-r0) (7/27) Installing readline (8.2.10-r0) (8/27) Installing sqlite-libs (3.46.0-r0) (9/27) Installing python3 (3.12.3-r1) (10/27) Installing python3-pycache-pyc0 (3.12.3-r1) (11/27) Installing pyc (3.12.3-r1) (12/27) Installing python3-pyc (3.12.3-r1) (13/27) Installing py3-parsing (3.1.2-r1) (14/27) Installing py3-parsing-pyc (3.1.2-r1) (15/27) Installing py3-packaging (24.1-r0) (16/27) Installing py3-packaging-pyc (24.1-r0) (17/27) Installing py3-setuptools (70.3.0-r0) (18/27) Installing py3-setuptools-pyc (70.3.0-r0) (19/27) Installing py3-iniconfig (2.0.0-r1) (20/27) Installing py3-iniconfig-pyc (2.0.0-r1) (21/27) Installing py3-pluggy (1.5.0-r0) (22/27) Installing py3-pluggy-pyc (1.5.0-r0) (23/27) Installing py3-py (1.11.0-r3) (24/27) Installing py3-py-pyc (1.11.0-r3) (25/27) Installing py3-pytest (8.2.2-r1) (26/27) Installing py3-pytest-pyc (8.2.2-r1) (27/27) Installing .makedepends-py3-glob2 (20240713.125115) Executing busybox-1.36.1-r31.trigger OK: 267 MiB in 126 packages >>> py3-glob2: Cleaning up srcdir >>> py3-glob2: Cleaning up pkgdir >>> py3-glob2: Cleaning up tmpdir >>> py3-glob2: Fetching https://distfiles.alpinelinux.org/distfiles/edge/glob2-0.7.tar.gz >>> py3-glob2: Fetching https://distfiles.alpinelinux.org/distfiles/edge/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/impl.py -> build/lib/glob2 copying glob2/fnmatch.py -> build/lib/glob2 copying glob2/compat.py -> build/lib/glob2 copying glob2/__init__.py -> build/lib/glob2 ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-8.2.2, pluggy-1.5.0 rootdir: /home/buildozer/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/buildozer/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.14s ==================== >>> ERROR: py3-glob2: check failed >>> py3-glob2: Uninstalling dependencies... (1/27) Purging .makedepends-py3-glob2 (20240713.125115) (2/27) Purging py3-setuptools-pyc (70.3.0-r0) (3/27) Purging py3-setuptools (70.3.0-r0) (4/27) Purging py3-pytest-pyc (8.2.2-r1) (5/27) Purging py3-pytest (8.2.2-r1) (6/27) Purging py3-iniconfig-pyc (2.0.0-r1) (7/27) Purging py3-iniconfig (2.0.0-r1) (8/27) Purging py3-packaging-pyc (24.1-r0) (9/27) Purging py3-packaging (24.1-r0) (10/27) Purging py3-parsing-pyc (3.1.2-r1) (11/27) Purging py3-parsing (3.1.2-r1) (12/27) Purging py3-pluggy-pyc (1.5.0-r0) (13/27) Purging py3-pluggy (1.5.0-r0) (14/27) Purging py3-py-pyc (1.11.0-r3) (15/27) Purging py3-py (1.11.0-r3) (16/27) Purging python3-pyc (3.12.3-r1) (17/27) Purging python3-pycache-pyc0 (3.12.3-r1) (18/27) Purging pyc (3.12.3-r1) (19/27) Purging python3 (3.12.3-r1) (20/27) Purging gdbm (1.24-r0) (21/27) Purging libbz2 (1.0.8-r6) (22/27) Purging libffi (3.4.6-r0) (23/27) Purging libpanelw (6.5_p20240601-r0) (24/27) Purging mpdecimal (4.0.0-r0) (25/27) Purging readline (8.2.10-r0) (26/27) Purging sqlite-libs (3.46.0-r0) (27/27) Purging xz-libs (5.6.2-r0) Executing busybox-1.36.1-r31.trigger OK: 213 MiB in 99 packages