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

Function test_flight_server_is_freed_on_exit

python/pyarrow/tests/test_flight.py:1145–1152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1143
1144
1145def test_flight_server_is_freed_on_exit():
1146 # Using FlightServerBase as a context manager should free
1147 # the server object on exit.
1148 with FlightServerBase('grpc://localhost:0') as server:
1149 ref = weakref.ref(server)
1150 del server
1151 gc.collect()
1152 assert ref() is None
1153
1154
1155@pytest.mark.xfail(

Callers

nothing calls this directly

Calls 2

FlightServerBaseClass · 0.90
refFunction · 0.85

Tested by

no test coverage detected