MCPcopy Index your code
hub / github.com/cloudpipe/cloudpickle / test_simple_enum

Function test_simple_enum

tests/test_backward_compat.py:61–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def test_simple_enum():
62 enum = load_obj("simple_enum.pkl", check_deprecation_warning=False)
63 assert hasattr(enum, "RED")
64 assert enum.RED == 1
65 assert enum.BLUE == 2
66
67 # test enum tracking feature
68 new_enum = load_obj("simple_enum.pkl", check_deprecation_warning=False)
69 assert new_enum is enum
70
71
72def test_complex_class():

Callers

nothing calls this directly

Calls 1

load_objFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…