Sign in
android
/
platform
/
external
/
swig
/
refs/heads/main
/
.
/
Examples
/
test-suite
/
python
/
langobj_runme.py
blob: ce1c9cdf39a04ee840c0236f78fdf50129013fe7 [
file
] [
log
] [
blame
]
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