pyo3/pytests/tests/test_subclassing.py
2022-02-05 10:16:46 +00:00

15 lines
276 B
Python

import platform
from pyo3_pytests.subclassing import Subclassable
class SomeSubClass(Subclassable):
def __str__(self):
return "SomeSubclass"
def test_subclassing():
a = SomeSubClass()
assert str(a) == "SomeSubclass"
assert type(a) is SomeSubClass