]> granicus.if.org Git - python/commitdiff
Jython doesn't have sys.setcheckinterval() - ignore it in that case.
authorMarc-André Lemburg <mal@egenix.com>
Sat, 13 Jan 2007 23:15:33 +0000 (23:15 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Sat, 13 Jan 2007 23:15:33 +0000 (23:15 +0000)
Tools/pybench/pybench.py

index 7fff0650afe10861463fdf3d5dd59eac4c88ed9d..d2da6098627ff3e9893931c77923c4d47bbea034 100755 (executable)
@@ -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