(self)
| 4014 | self.assertEqual(derived, expected) |
| 4015 | |
| 4016 | def test_strptime(self): |
| 4017 | # bpo-34482: Check that surrogates are handled properly. |
| 4018 | inputs = [ |
| 4019 | (self.theclass(13, 2, 47, 197000), '13:02:47.197', '%H:%M:%S.%f'), |
| 4020 | (self.theclass(13, 2, 47, 197000), '13:02\ud80047.197', '%H:%M\ud800%S.%f'), |
| 4021 | (self.theclass(13, 2, 47, 197000), '13\ud80002:47.197', '%H\ud800%M:%S.%f'), |
| 4022 | ] |
| 4023 | for expected, string, format in inputs: |
| 4024 | with self.subTest(string=string, format=format): |
| 4025 | got = self.theclass.strptime(string, format) |
| 4026 | self.assertEqual(expected, got) |
| 4027 | self.assertIs(type(got), self.theclass) |
| 4028 | |
| 4029 | def test_strptime_tz(self): |
| 4030 | strptime = self.theclass.strptime |
nothing calls this directly
no test coverage detected