Commit b1a8ef62 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Jython doesn't have sys.setcheckinterval() - ignore it in that case.

parent 3b8f60b7
...@@ -860,7 +860,7 @@ python pybench.py -s p25.pybench -c p21.pybench ...@@ -860,7 +860,7 @@ python pybench.py -s p25.pybench -c p21.pybench
value = 2147483647 value = 2147483647
try: try:
sys.setcheckinterval(value) sys.setcheckinterval(value)
except NotImplementedError: except (AttributeError, NotImplementedError):
print '* Python version doesn\'t support sys.setcheckinterval' print '* Python version doesn\'t support sys.setcheckinterval'
else: else:
print '* system check interval set to maximum: %s' % value print '* system check interval set to maximum: %s' % value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment