Skip to content

Commit f965f0c

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def test_strptime_bytes(self):
379379
def test_strptime_exception_context(self):
380380
# check that this doesn't chain exceptions needlessly (see #17572)
381381
with self.assertRaises(ValueError) as e:
382-
time.strptime('', '%D')
382+
time.strptime('', '%!')
383383
self.assertTrue(e.exception.__suppress_context__)
384384
# additional check for stray % branch
385385
with self.assertRaises(ValueError) as e:

0 commit comments

Comments
 (0)