From b1a8ef629753ddfd23968a4418669ebbda83c835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Sat, 13 Jan 2007 23:15:33 +0000 Subject: [PATCH] Jython doesn't have sys.setcheckinterval() - ignore it in that case. --- Tools/pybench/pybench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py index 7fff0650afe..d2da6098627 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