Skip to content

Commit

Permalink
Fix bug making nose hang at the end of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
k4nar committed Jun 1, 2016
1 parent 6f6d459 commit 75e4748
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions circus/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import zmq
from circus.util import configure_logger
from circus import logger

Expand All @@ -12,3 +13,11 @@

def setUp():
from circus import _patch # NOQA


def tearDown():
# There seems to some issue with context cleanup and Python >= 3.4
# making the tests hang at the end
# Explicitely destroying the context seems to do the trick
# cf https://github.com/zeromq/pyzmq/pull/513
zmq.Context.instance().destroy()

0 comments on commit 75e4748

Please sign in to comment.