(self)
| 3513 | self.assertEqual(dt_rt, dt) |
| 3514 | |
| 3515 | def test_fromisoformat_separators(self): |
| 3516 | separators = [ |
| 3517 | ' ', 'T', '\u007f', # 1-bit widths |
| 3518 | '\u0080', 'ʁ', # 2-bit widths |
| 3519 | 'ᛇ', '時', # 3-bit widths |
| 3520 | '🐍', # 4-bit widths |
| 3521 | '\ud800', # bpo-34454: Surrogate code point |
| 3522 | ] |
| 3523 | |
| 3524 | for sep in separators: |
| 3525 | dt = self.theclass(2018, 1, 31, 23, 59, 47, 124789) |
| 3526 | dtstr = dt.isoformat(sep=sep) |
| 3527 | |
| 3528 | with self.subTest(dtstr=dtstr): |
| 3529 | dt_rt = self.theclass.fromisoformat(dtstr) |
| 3530 | self.assertEqual(dt, dt_rt) |
| 3531 | |
| 3532 | def test_fromisoformat_ambiguous(self): |
| 3533 | # Test strings like 2018-01-31+12:15 (where +12:15 is not a time zone) |
nothing calls this directly
no test coverage detected