summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/langobj_runme.py
blob: c10e19303bea0860a589ad68b65cb4b3c72aed47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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