Skip to content

Commit 2c31aba

Browse files
committed
change invalid format code from %D to C-standard unused %!
1 parent c7f30c9 commit 2c31aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def test_ValueError(self):
286286
def test_strptime_exception_context(self):
287287
# check that this doesn't chain exceptions needlessly (see #17572)
288288
with self.assertRaises(ValueError) as e:
289-
_strptime._strptime_time('', '%D')
289+
_strptime._strptime_time('', '%!')
290290
self.assertTrue(e.exception.__suppress_context__)
291291
# additional check for stray % branch
292292
with self.assertRaises(ValueError) as e:

0 commit comments

Comments
 (0)