MCPcopy Create free account
hub / github.com/apache/arrow / test_import_at_shutdown

Function test_import_at_shutdown

python/pyarrow/tests/test_misc.py:127–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126@pytest.mark.processes
127def test_import_at_shutdown():
128 # GH-38626: importing PyArrow at interpreter shutdown would crash
129 code = """if 1:
130 import atexit
131
132 def import_arrow():
133 import pyarrow
134
135 atexit.register(import_arrow)
136 """
137 subprocess.check_call([sys.executable, "-c", code])
138
139
140@pytest.mark.skipif(sys.platform == "win32",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected