Bug ID 1210118
Summary python-astor fails to build on ERROR: test_huge_int in Leap 15.5
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.5
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee screening-team-bugs@suse.de
Reporter lubos.kocman@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Hello python-astor currently fails to build in Leap 15.5 as it fails on one of
the tests.

here's the build log
https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP5/python-astor/standard/x86_64

[   74s] ======================================================================
[   74s] ERROR: test_huge_int (tests.test_code_gen.CodegenTestCase)
[   74s] ----------------------------------------------------------------------
[   74s] Traceback (most recent call last):
[   74s]   File
"/home/abuild/rpmbuild/BUILD/astor-0.8.1/tests/test_code_gen.py", line 290, in
test_huge_int
[   74s]     self.assertEqual(astornum(n), n)
[   74s]   File
"/home/abuild/rpmbuild/BUILD/astor-0.8.1/tests/test_code_gen.py", line 31, in
astornum
[   74s]     return astorexpr(ast.Num(n=x))
[   74s]   File
"/home/abuild/rpmbuild/BUILD/astor-0.8.1/tests/test_code_gen.py", line 28, in
astorexpr
[   74s]     return eval(astor.to_source(ast.Expression(body=x)))
[   74s]   File "/home/abuild/rpmbuild/BUILD/astor-0.8.1/astor/code_gen.py",
line 63, in to_source
[   74s]     generator.visit(node)
[   74s]   File "/home/abuild/rpmbuild/BUILD/astor-0.8.1/astor/node_util.py",
line 143, in visit
[   74s]     return visitor(node)
[   74s]   File "/home/abuild/rpmbuild/BUILD/astor-0.8.1/astor/code_gen.py",
line 883, in visit_Expression
[   74s]     self.visit(node.body)
[   74s]   File "/home/abuild/rpmbuild/BUILD/astor-0.8.1/astor/node_util.py",
line 143, in visit
[   74s]     return visitor(node)
[   74s]   File "/home/abuild/rpmbuild/BUILD/astor-0.8.1/astor/code_gen.py",
line 695, in visit_Num
[   74s]     self._handle_numeric_constant(node.n)
[   74s]   File "/home/abuild/rpmbuild/BUILD/astor-0.8.1/astor/code_gen.py",
line 677, in _handle_numeric_constant
[   74s]     real = part(x.real if isinstance(x, complex) else x,
imaginary=False)
[   74s]   File "/home/abuild/rpmbuild/BUILD/astor-0.8.1/astor/code_gen.py",
line 675, in part
[   74s]     return repr(p) + s
[   74s] ValueError: Exceeds the limit (4300) for integer string conversion;
use sys.set_int_max_str_digits() to increase the limit

We'd like to have a working build prior to RC in April. See
https://en.opensuse.org/openSUSE:Roadmap


You are receiving this mail because: