()
| 125 | |
| 126 | @pytest.mark.processes |
| 127 | def 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", |
nothing calls this directly
no outgoing calls
no test coverage detected