Skip to content

Commit

Permalink
Use threading lib over _thread - check if coverage captures
Browse files Browse the repository at this point in the history
  • Loading branch information
antesaj committed Apr 7, 2023
1 parent ad7b596 commit fd23faa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/server_tests/test_arrow_server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
import _thread
import threading
import pyarrow
import os
import pyarrow.csv as csv
Expand All @@ -18,7 +18,8 @@ def setUp(self):
self.arrow_server = FlightServer(host, location)
def start_server():
pa.start(self.arrow_server)
_thread.start_new_thread(start_server, ())
t = threading.Thread(target=start_server, args=())
t.start()

# Set up a flight client
self.arrow_client = pyarrow.flight.FlightClient(location)
Expand Down

0 comments on commit fd23faa

Please sign in to comment.