Skip to content

Commit 92fa728

Browse files
fix swapped msg in test_constructor_positional
1 parent 3cfc7a5 commit 92fa728

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ jobs:
313313
# To freeze this file, uncomment out the ``if: false`` condition, and migrate the jobs
314314
# to the corresponding posix/windows-macos/sdist etc. workflows.
315315
# Feel free to modify this comment as necessary.
316+
# if: false
316317
defaults:
317318
run:
318319
shell: bash -eou pipefail {0}

pandas/tests/scalar/timestamp/test_constructors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ def test_constructor_positional(self):
217217
Timestamp(2000, 1)
218218

219219
if PY314:
220-
msg = "month must be in 1..12, not"
221-
else:
222220
msg = "day is out of range for month"
221+
else:
222+
msg = "month must be in 1..12"
223223
with pytest.raises(ValueError, match=msg):
224224
Timestamp(2000, 0, 1)
225225
with pytest.raises(ValueError, match=msg):

0 commit comments

Comments
 (0)