summaryrefslogtreecommitdiffstats
path: root/Tools/pybench/NewInstances.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/pybench/NewInstances.py')
-rw-r--r--[-rwxr-xr-x]Tools/pybench/NewInstances.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Tools/pybench/NewInstances.py b/Tools/pybench/NewInstances.py
index a352638..258beba 100755..100644
--- a/Tools/pybench/NewInstances.py
+++ b/Tools/pybench/NewInstances.py
@@ -1,8 +1,17 @@
from pybench import Test
+# Check for new-style class support:
+try:
+ class c(object):
+ pass
+except NameError:
+ raise ImportError
+
+###
+
class CreateNewInstances(Test):
- version = 0.1
+ version = 2.0
operations = 3 + 7 + 4
rounds = 60000