Skip to content

Commit 6556bdf

Browse files
committed
Test fail message fixes
1 parent cef0722 commit 6556bdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/datetimetester.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,8 +2156,8 @@ def run_subtest():
21562156
run_subtest()
21572157
else:
21582158
self.fail(f"it seems that {sample.strftime(fmt)=} "
2159-
f"does not include year={sample.year!r} "
2160-
f"in any variant (is there something "
2159+
f"does not include year={sample.year!r} in "
2160+
f"any expected format (is there something "
21612161
f"severely wrong with current locale?)")
21622162

21632163
def test_strptime_accepting_locale_specific_year_with_fewer_digits(self):
@@ -2187,8 +2187,8 @@ def run_subtest():
21872187
run_subtest()
21882188
else:
21892189
self.fail(f"it seems that {sample.strftime(fmt)=} "
2190-
f"does not include year={sample.year!r} "
2191-
f"in any variant (is there something "
2190+
f"does not include year={sample.year!r} in "
2191+
f"any expected format (is there something "
21922192
f"severely wrong with current locale?)")
21932193

21942194

0 commit comments

Comments
 (0)