(self)
| 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): |
nothing calls this directly
no test coverage detected