blob: ce1c9cdf39a04ee840c0236f78fdf50129013fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import sys
from langobj import *
x = 256*256+1
rx = sys.getrefcount(x)
v = identity(x)
rv = sys.getrefcount(v)
if v != x:
raise RuntimeError
if rv - rx != 1:
raise RuntimeError
|