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

Method test_no_members

Lib/test/test_enum.py:3505–3515  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3503 self.assertIs(Cardinal(-1, 0), Cardinal.LEFT)
3504
3505 def test_no_members(self):
3506 with self.assertRaisesRegex(
3507 TypeError,
3508 'has no members',
3509 ):
3510 Enum(7)
3511 with self.assertRaisesRegex(
3512 TypeError,
3513 'has no members',
3514 ):
3515 Flag(7)
3516
3517 def test_empty_names(self):
3518 for nothing in '', [], {}:

Callers

nothing calls this directly

Calls 3

EnumClass · 0.90
FlagClass · 0.90
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected