Skip to content

Commit b9f2aef

Browse files
committed
add condition to test_identity
1 parent 3e26a62 commit b9f2aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pandas/tests/scalar/test_nat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_nat_vector_field_access():
109109
"value", [None, np.nan, iNaT, float("nan"), NaT, "NaT", "nat", "", "NAT"]
110110
)
111111
def test_identity(klass, value):
112-
if value == "":
112+
if value == "" and klass == Timestamp:
113113
msg = "Passing an empty string to Timestamp"
114114
with tm.assert_produces_warning(FutureWarning, match=msg):
115115
result = klass(value)

0 commit comments

Comments
 (0)