diff options
Diffstat (limited to 'trunk/Examples/test-suite/python/smart_pointer_not_runme.py')
-rw-r--r-- | trunk/Examples/test-suite/python/smart_pointer_not_runme.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/python/smart_pointer_not_runme.py b/trunk/Examples/test-suite/python/smart_pointer_not_runme.py new file mode 100644 index 000000000..4c90b376b --- /dev/null +++ b/trunk/Examples/test-suite/python/smart_pointer_not_runme.py @@ -0,0 +1,42 @@ +from smart_pointer_not import * + +f = Foo() +b = Bar(f) +s = Spam(f) +g = Grok(f) + +try: + x = b.x + print "Error! b.x" +except: + pass + +try: + x = s.x + print "Error! s.x" +except: + pass + +try: + x = g.x + print "Error! g.x" +except: + pass + +try: + x = b.getx() + print "Error! b.getx()" +except: + pass + +try: + x = s.getx() + print "Error! s.getx()" +except: + pass + +try: + x = g.getx() + print "Error! g.getx()" +except: + pass |