summaryrefslogtreecommitdiffstats
path: root/Tools/pybench
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2007-01-13 23:15:33 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2007-01-13 23:15:33 (GMT)
commitb1a8ef629753ddfd23968a4418669ebbda83c835 (patch)
tree25ecbe1f8fe6b9da494ebccbd44f23ff1971f2a9 /Tools/pybench
parent3b8f60b7003f9a4b364425f1789c9947b998b520 (diff)
downloadcpython-b1a8ef629753ddfd23968a4418669ebbda83c835.zip
cpython-b1a8ef629753ddfd23968a4418669ebbda83c835.tar.gz
cpython-b1a8ef629753ddfd23968a4418669ebbda83c835.tar.bz2
Jython doesn't have sys.setcheckinterval() - ignore it in that case.
Diffstat (limited to 'Tools/pybench')
-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 7fff065..d2da609 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