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

Method test_extra_attributes

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

Source from the content-addressed store, hash-verified

5942 self.assertEqual(x.__ge__(y), NotImplemented)
5943
5944 def test_extra_attributes(self):
5945 with self.assertWarns(DeprecationWarning):
5946 utcnow = datetime.utcnow()
5947 for x in [date.today(),
5948 time(),
5949 utcnow,
5950 timedelta(),
5951 tzinfo(),
5952 timezone(timedelta())]:
5953 with self.assertRaises(AttributeError):
5954 x.abc = 1
5955
5956 def test_check_arg_types(self):
5957 class Number:

Callers

nothing calls this directly

Calls 8

timeClass · 0.90
timedeltaClass · 0.90
tzinfoClass · 0.90
timezoneClass · 0.90
assertWarnsMethod · 0.80
utcnowMethod · 0.80
todayMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected