Add failing test for TzClass introspection
Currently accesing `tzi.__class__` causes a segmentation fault
This commit is contained in:
parent
da906fb715
commit
f847974c06
|
@ -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()"
|
||||
|
||||
|
|
Loading…
Reference in New Issue