We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12da0c commit 54d5aa0Copy full SHA for 54d5aa0
src/test_fractions.py
@@ -26,8 +26,8 @@ def requires_IEEE_754(test): return test
26
except ImportError:
27
@contextlib.contextmanager
28
def adjust_int_max_str_digits(max_digits):
29
- if not hasattr(sys, 'set_int_max_str_digits'):
30
- unittest.skip("needs sys.set_int_max_str_digits()")
+ if not hasattr(sys, 'get_int_max_str_digits'):
+ raise unittest.SkipTest("needs sys.set_int_max_str_digits()")
31
old_max = sys.get_int_max_str_digits()
32
sys.set_int_max_str_digits(max_digits)
33
try:
0 commit comments