mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-31 18:40:09 +03:00
test should be more robust
This commit is contained in:
parent
bf01bbcfca
commit
acd82adad3
|
@ -426,6 +426,7 @@ t.join()
|
|||
process = multiprocessing.Process(target=conn, args=(queue,))
|
||||
process.start()
|
||||
queue.get()
|
||||
time.sleep(0.1)
|
||||
os.kill(process.pid, signal.SIGINT)
|
||||
process.join()
|
||||
self.assertEqual(queue.get(), "KeyboardInterrupt")
|
||||
|
|
Loading…
Reference in New Issue
Block a user