Skip to content

Commit 1750413

Browse files
committed
MAINT: Remove bare pytest.raises
Ensure all pytest raises are not bare
1 parent c02302d commit 1750413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/test_stata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ def test_unsupported_datetype(self):
13741374
"dates": dates,
13751375
}
13761376
)
1377-
with pytest.raises(NotImplementedError):
1377+
with pytest.raises(NotImplementedError, match="Data type datetime64"):
13781378
with tm.ensure_clean() as path:
13791379
original.to_stata(path)
13801380

0 commit comments

Comments
 (0)