summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2007-01-13 23:15:33 +0000
committerMarc-André Lemburg <mal@egenix.com>2007-01-13 23:15:33 +0000
commitb1a8ef629753ddfd23968a4418669ebbda83c835 (patch)
tree25ecbe1f8fe6b9da494ebccbd44f23ff1971f2a9
parent3b8f60b7003f9a4b364425f1789c9947b998b520 (diff)
downloadcpython-git-b1a8ef629753ddfd23968a4418669ebbda83c835.tar.gz
Jython doesn't have sys.setcheckinterval() - ignore it in that case.
-rwxr-xr-xTools/pybench/pybench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py
index 7fff0650af..d2da609862 100755
--- a/Tools/pybench/pybench.py
+++ b/Tools/pybench/pybench.py
@@ -860,7 +860,7 @@ python pybench.py -s p25.pybench -c p21.pybench
value = 2147483647
try:
sys.setcheckinterval(value)
- except NotImplementedError:
+ except (AttributeError, NotImplementedError):
print '* Python version doesn\'t support sys.setcheckinterval'
else:
print '* system check interval set to maximum: %s' % value