diff --git a/tests/utils_tests/test_dateparse.py b/tests/utils_tests/test_dateparse.py index 9d0f5c274c..9974b85f07 100644 --- a/tests/utils_tests/test_dateparse.py +++ b/tests/utils_tests/test_dateparse.py @@ -25,6 +25,11 @@ class DateParseTests(unittest.TestCase): self.assertEqual(parse_time('10:20:30.400'), time(10, 20, 30, 400000)) self.assertEqual(parse_time('10:20:30,400'), time(10, 20, 30, 400000)) self.assertEqual(parse_time('4:8:16'), time(4, 8, 16)) + # Time zone offset is ignored. + self.assertEqual(parse_time('00:05:23+04:00'), time(0, 5, 23)) + # These should be invalid, see #32904. + self.assertEqual(parse_time('00:05:'), time(0, 5)) + self.assertEqual(parse_time('4:18:101'), time(4, 18, 10)) # Invalid inputs self.assertIsNone(parse_time('091500')) with self.assertRaises(ValueError):