MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / scope

Method scope

tests/cloudpickle_test.py:1108–1114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1106 def test_submodule_closure(self):
1107 # Same as test_submodule except the xml package has not been imported
1108 def scope():
1109 import xml.etree.ElementTree
1110
1111 def example():
1112 _ = xml.etree.ElementTree.Comment # potential AttributeError
1113
1114 return example
1115
1116 example = scope()
1117 example() # smoke test

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected