Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sportebois/eaf456e98b65f3479f29490e4a6e5de8 to your computer and use it in GitHub Desktop.
Save sportebois/eaf456e98b65f3479f29490e4a6e5de8 to your computer and use it in GitHub Desktop.
Automatically start/stop the exposer in a thread
@fixture(scope="session")
def exposer_thread(request):
start_exposer_thread()
def close():
stop_exposer_thread()
request.addfinalizer(close)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment