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

This commit is contained in:
Marc-André Lemburg 2007-01-13 23:15:33 +00:00
parent 3b8f60b700
commit b1a8ef6297
1 changed files with 1 additions and 1 deletions

View File

@ -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