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

Method test_pickle_nested_class

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

Source from the content-addressed store, hash-verified

1804 test_pickle_dump_load(self.assertIs, Question)
1805
1806 def test_pickle_nested_class(self):
1807 # would normally just have this directly in the class namespace
1808 class NestedEnum(Enum):
1809 twigs = 'common'
1810 shiny = 'rare'
1811
1812 self.__class__.NestedEnum = NestedEnum
1813 self.NestedEnum.__qualname__ = '%s.NestedEnum' % self.__class__.__name__
1814 test_pickle_dump_load(self.assertIs, self.NestedEnum.twigs)
1815
1816 def test_pickle_by_name(self):
1817 class ReplaceGlobalInt(IntEnum):

Callers

nothing calls this directly

Calls 1

test_pickle_dump_loadFunction · 0.85

Tested by

no test coverage detected