Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail due to outsized integer test values #115

Closed
dataflake opened this issue Sep 14, 2022 · 0 comments · Fixed by #116
Closed

Tests fail due to outsized integer test values #115

dataflake opened this issue Sep 14, 2022 · 0 comments · Fixed by #116
Assignees
Labels

Comments

@dataflake
Copy link
Member

The Python maintainers recently fixed python/cpython#95778, which puts a size limit on values converted between int and str. The test code is littered with integer test values that exceed this new limit, so tests fail like this:

Failed example:
[   15s]     f.fromUnicode(str(2**31234) + '.' + str(2**256))
[   15s]     # doctest: +ELLIPSIS
[   15s] Exception raised:
[   15s]     Traceback (most recent call last):
[   15s]       File "/usr/lib64/python3.8/doctest.py", line 1336, in __run
[   15s]         exec(compile(example.source, filename, "single",
[   15s]       File "<doctest zope.schema._field.Float[6]>", line 1, in <module>
[   15s]         f.fromUnicode(str(2**31234) + '.' + str(2**256))
[   15s]     ValueError: Exceeds the limit (4300) for integer string conversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant