Bug 2576590 - python-py-walk fails to build with Python 3.16: test_git_cases: assert True == False
Summary: python-py-walk fails to build with Python 3.16: test_git_cases: assert True =...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-py-walk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.16
TreeView+ depends on / blocked
 
Reported: 2026-11-19 13:03 UTC by Karolina Surma
Modified: 2026-11-19 13:03 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-11-19 13:03:49 UTC
python-py-walk fails to build with Python 3.16.0a2.

_________________________ test_git_cases[git_tests117] _________________________

repo_path = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/repo4')
git_tests = ('[---]\n', '-', True)
test_runner = <function test_runner.<locals>.inner_function at 0x7ff4b9539900>

    def test_git_cases(repo_path, git_tests, test_runner):
        """Run test cases originally created in the git project."""
    
        # get patterns and path
        patterns, path, expected = git_tests
        git_result, lib_result = test_runner(repo_path, patterns, path)
        log.debug(f"Git result: {git_result}")
        log.debug(f"Lib result: {lib_result}")
        log.debug(f"Expected: {expected}")
>       assert git_result == lib_result
E       assert True == False

tests/test_git_cases.py:13: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG    py_walk:conftest.py:57 -- Patterns:
[---]

DEBUG    py_walk:conftest.py:58 -- Path: -
DEBUG    py_walk:parser.py:20 
-- Regex building
DEBUG    py_walk:glob_to_regex.py:46 - token: CHARACTER_CLASS ([---])
DEBUG    py_walk:character_class_to_regex.py:112 - cc token: BARE_START ([)
DEBUG    py_walk:character_class_to_regex.py:112 - cc token: RANGE (---)
DEBUG    py_walk:character_class_to_regex.py:112 - cc token: END (])
DEBUG    py_walk:parser.py:22 Glob: [---] Parts: ['_', '(?!)']
DEBUG    py_walk:parser.py:48 
-- Matching path: - (is_dir: False)
DEBUG    py_walk:test_git_cases.py:10 Git result: True
DEBUG    py_walk:test_git_cases.py:11 Lib result: False
DEBUG    py_walk:test_git_cases.py:12 Expected: True

https://docs.python.org/3.16/whatsnew/3.16.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.16/fedora-rawhide-x86_64/11359694-python-py-walk/

For all our attempts to build python-py-walk with Python 3.16, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.16/package/python-py-walk/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.16:
https://copr.fedorainfracloud.org/coprs/g/python/python3.16/

Let us know here if you have any questions.

Python 3.16 is planned to be included in Fedora 47.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.16.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.


Note You need to log in before you can comment on or make changes to this bug.