Skip to content

Commit bd85fbd

Browse files
committed
fix logic in scalar fixture
1 parent 5668e12 commit bd85fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stringdtype/tests/test_stringdtype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def dtype(request):
3939

4040
@pytest.fixture
4141
def scalar(dtype):
42-
if dtype == StringDType():
42+
if isinstance(dtype, StringDType):
4343
return StringScalar
4444
else:
4545
return PandasStringScalar

0 commit comments

Comments
 (0)