Commit 17bf01d7 authored by Matias Guijarro's avatar Matias Guijarro

tests: run atexit handlers before Beacon exits

Better simulates real life, removes error messages about weakref.finalize
parent 4f3812d7
......@@ -10,7 +10,7 @@ import sys
import socket
import shutil
from collections import namedtuple
import atexit
import redis
import pytest
import gevent
......@@ -147,6 +147,7 @@ def ports(beacon_directory):
try:
yield ports
finally:
atexit._run_exitfuncs()
proc.terminate()
print(proc.stderr.read().decode(), file=sys.stderr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment