aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py')
-rw-r--r--Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py b/Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py
index 9b9c7d683..adf9ac4cf 100644
--- a/Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py
+++ b/Examples/test-suite/python/li_boost_shared_ptr_bits_runme.py
@@ -1,10 +1,6 @@
from li_boost_shared_ptr_bits import *
-def is_new_style_class(cls):
- return hasattr(cls, "__class__")
-
-
def check(nd):
nd.i = 200
i = nd.i
@@ -35,7 +31,4 @@ if sum != 66:
raise "sum is wrong"
################################
-if is_new_style_class(HiddenDestructor):
- p = HiddenDestructor.create()
-else:
- p = HiddenDestructor_create()
+p = HiddenDestructor.create()