https://bugzilla.redhat.com/show_bug.cgi?id=2279990
Bug ID: 2279990
Summary: python-pure-eval fails to build with Python 3.13:
test_sys_modules: AssertionError
Product: Fedora
Version: rawhide
Status: NEW
Component: python-pure-eval
Assignee: lbalhar(a)redhat.com
Reporter: ksurma(a)redhat.com
CC: epel-packagers-sig(a)lists.fedoraproject.org,
ksurma(a)redhat.com, lbalhar(a)redhat.com,
mhroncok(a)redhat.com, michel(a)michel-slm.name,
python-packagers-sig(a)lists.fedoraproject.org
Blocks: 2244836 (PYTHON3.13)
Target Milestone: ---
Classification: Fedora
python-pure-eval fails to build with Python 3.13.0b1.
=================================== FAILURES
===================================
_______________________________ test_sys_modules
_______________________________
def test_sys_modules():
modules = sys_modules_sources()
if not os.environ.get('PURE_EVAL_SLOW_TESTS'):
modules = islice(modules, 0, 3)
for filename, source, tree in modules:
print(filename)
if not filename.endswith("ast.py"):
check_copy_ast_without_context(tree)
tests/test_utils.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tree = <ast.Module object at 0x7f87699d70d0>
def check_copy_ast_without_context(tree):
tree2 = copy_ast_without_context(tree)
dump1 = ast.dump(tree)
dump2 = ast.dump(tree2)
normalised_dump1 = re.sub(
r", ctx=(Load|Store|Del)\(\)",
"",
dump1
)
assert normalised_dump1 == dump2
E assert
"Module(body=...e__'))]))])])" ==
"Module(body=...e__'))]))])])"
E Skipping 4274 identical leading characters in diff, use -v to show
E - alue=List()), Assign(targets=[Attribute(value=Name(id='self'),
attr='_iterating')], value=Call(func=Name(id='set'))),
Assign(targets=[Attribute(value=Name(id='self'), attr='data')],
value=Dict())]), FunctionDef(name='_commit_removals',
args=arguments(args=[arg(arg='self')]),
body=[Assign(targets=[Name(id='pop')],
value=Attribute(value=Attribute(value=Name(id='self'),
attr='_pending_removals'), attr='pop')),
Assign(targets=[Name(id='d')],
value=Attribute(value=Name(id='self'), attr='data')), While(test=C...
E
E ...Full output truncated (4 lines hidden), use '-vv' to show
tests/test_utils.py:65: AssertionError
FAILED tests/test_utils.py::test_sys_modules - assert
"Module(body=...e__'))]...
https://docs.python.org/3.13/whatsnew/3.13.html
For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora...
For all our attempts to build python-pure-eval with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/pytho...
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.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/
Let us know here if you have any questions.
Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all
pre-releases of Python 3.13.
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.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2244836
[Bug 2244836] Python 3.13
--
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2279990
Report this comment as SPAM:
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=rep...