Jython doesn't have sys.setcheckinterval() - ignore it in that case.
This commit is contained in:
parent
3b8f60b700
commit
b1a8ef6297
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue