diff options
Diffstat (limited to 'trunk/Examples/test-suite/python/langobj_runme.py')
-rw-r--r-- | trunk/Examples/test-suite/python/langobj_runme.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/python/langobj_runme.py b/trunk/Examples/test-suite/python/langobj_runme.py new file mode 100644 index 000000000..c10e19303 --- /dev/null +++ b/trunk/Examples/test-suite/python/langobj_runme.py @@ -0,0 +1,13 @@ +import sys +from langobj import * + + +x ="hello" +rx = sys.getrefcount(x) +v = identity(x) +rv = sys.getrefcount(v) +if v != x: + raise RuntimeError + +if rv - rx != 1: + raise RuntimeError |