We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b0f07 commit d0e6a1fCopy full SHA for d0e6a1f
1 file changed
Lib/test/datetimetester.py
@@ -2917,7 +2917,11 @@ def test_strptime(self):
2917
with self.assertRaises(ValueError): strptime("z", "%z")
2918
2919
# test only ascii is allowed
2920
- with self.assertRaises(ValueError): strptime('٢025-03-09', '%Y-%m-%d')
+ with self.assertRaises(ValueError): strptime('٢025-0٢-٢9', '%Y-%m-%d')
2921
+ with self.assertRaises(ValueError): strptime('1٢:02:٢7', '%H:%M:%S')
2922
+ with self.assertRaises(ValueError): strptime('٢5', '%y')
2923
+ with self.assertRaises(ValueError): strptime('٢555', '%G')
2924
+ with self.assertRaises(ValueError): strptime('٢/03 0٢a٢', '%j/%y %I%p:%M:%S')
2925
2926
def test_strptime_single_digit(self):
2927
# bpo-34903: Check that single digit dates and times are allowed.
0 commit comments