MCPcopy Index your code
hub / github.com/python/cpython / test_disallowed_special

Method test_disallowed_special

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

Source from the content-addressed store, hash-verified

656
657 @support.requires_IEEE_754
658 def test_disallowed_special(self):
659 a = timedelta(42)
660 self.assertRaises(ValueError, a.__mul__, NAN)
661 self.assertRaises(ValueError, a.__truediv__, NAN)
662
663 def test_basic_attributes(self):
664 days, seconds, us = 1, 7, 31

Callers

nothing calls this directly

Calls 2

timedeltaClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected