MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_fromisoformat_subclass

Method test_fromisoformat_subclass

Lib/test/datetimetester.py:4822–4830  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4820 self.theclass.fromisoformat(bad_type)
4821
4822 def test_fromisoformat_subclass(self):
4823 class TimeSubclass(self.theclass):
4824 pass
4825
4826 tsc = TimeSubclass(12, 14, 45, 203745, tzinfo=timezone.utc)
4827 tsc_rt = TimeSubclass.fromisoformat(tsc.isoformat())
4828
4829 self.assertEqual(tsc, tsc_rt)
4830 self.assertIsInstance(tsc_rt, TimeSubclass)
4831
4832 def test_subclass_timetz(self):
4833

Callers

nothing calls this directly

Calls 5

assertIsInstanceMethod · 0.80
TimeSubclassClass · 0.70
fromisoformatMethod · 0.45
isoformatMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected