Add failing test for TzClass introspection

Currently accesing `tzi.__class__` causes a segmentation fault
This commit is contained in:
Paul Ganssle 2018-09-28 11:13:53 -04:00
parent da906fb715
commit f847974c06
No known key found for this signature in database
GPG Key ID: CD54FCE3D964BEFB
1 changed files with 7 additions and 0 deletions

View File

@ -271,3 +271,10 @@ def test_tz_class():
assert dt.tzname() == "+01:00"
assert dt.utcoffset() == pdt.timedelta(hours=1)
assert dt.dst() is None
def test_tz_class_introspection():
tzi = rdt.TzClass()
assert tzi.__class__ == rdt.TzClass
assert repr(tzi) == "TzClass()"