(self)
| 3623 | self.assertIs(dt.tzinfo, timezone.utc) |
| 3624 | |
| 3625 | def test_fromisoformat_subclass(self): |
| 3626 | class DateTimeSubclass(self.theclass): |
| 3627 | pass |
| 3628 | |
| 3629 | dt = DateTimeSubclass(2014, 12, 14, 9, 30, 45, 457390, |
| 3630 | tzinfo=timezone(timedelta(hours=10, minutes=45))) |
| 3631 | |
| 3632 | dt_rt = DateTimeSubclass.fromisoformat(dt.isoformat()) |
| 3633 | |
| 3634 | self.assertEqual(dt, dt_rt) |
| 3635 | self.assertIsInstance(dt_rt, DateTimeSubclass) |
| 3636 | |
| 3637 | def test_repr_subclass(self): |
| 3638 | """Subclasses should have bare names in the repr (gh-107773).""" |
nothing calls this directly
no test coverage detected