mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-01 19:00: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 = multiprocessing.Process(target=conn, args=(queue,))
|
||||||
process.start()
|
process.start()
|
||||||
queue.get()
|
queue.get()
|
||||||
|
time.sleep(0.1)
|
||||||
os.kill(process.pid, signal.SIGINT)
|
os.kill(process.pid, signal.SIGINT)
|
||||||
process.join()
|
process.join()
|
||||||
self.assertEqual(queue.get(), "KeyboardInterrupt")
|
self.assertEqual(queue.get(), "KeyboardInterrupt")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user