We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a31514 commit 7bdbb45Copy full SHA for 7bdbb45
stringdtype/tests/test_stringdtype.py
@@ -49,17 +49,24 @@ def dtype(na_object, coerce):
49
50
51
def test_dtype_creation():
52
+ hashes = set()
53
dt = StringDType()
54
assert not hasattr(dt, "na_object") and dt.coerce == 1
55
+ hashes.add(hash(dt))
56
57
dt = StringDType(na_object=None)
58
assert dt.na_object is None and dt.coerce == 1
59
60
61
dt = StringDType(coerce=False)
62
assert not hasattr(dt, "na_object") and dt.coerce == 0
63
64
65
dt = StringDType(na_object=None, coerce=False)
66
assert dt.na_object is None and dt.coerce == 0
67
68
+
69
+ assert len(hashes) == 4
70
71
72
def test_scalar_creation():
0 commit comments