pyo3/examples/rustapi_module/tests/test_subclassing.py
2019-09-06 01:16:09 +02:00

15 lines
229 B
Python

import platform
from rustapi_module.subclassing import Subclassable
PYPY = platform.python_implementation() == "PyPy"
class SomeSubClass(Subclassable):
pass
if not PYPY:
a = SomeSubClass()
_b = str(a) + repr(a)