3dc5b86f22
Add a testcase from #407. Both test cases don't segfault after the change to the #[pyclass] system in #683. Closes #407
16 lines
265 B
Python
16 lines
265 B
Python
import platform
|
|
|
|
from rustapi_module.subclassing import Subclassable
|
|
|
|
PYPY = platform.python_implementation() == "PyPy"
|
|
|
|
|
|
class SomeSubClass(Subclassable):
|
|
pass
|
|
|
|
|
|
def test_subclassing():
|
|
if not PYPY:
|
|
a = SomeSubClass()
|
|
_b = str(a) + repr(a)
|