Skip to content

Commit

Permalink
Skip test_observer_shutdown if plt cannot be imported
Browse files Browse the repository at this point in the history
  • Loading branch information
irl committed Oct 20, 2016
1 parent 4f2094d commit 6f61212
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ def test_observer_icmp_unreachable_flowcount():
assert _test_observer(lturi) == 2

def test_observer_shutdown():
try:
import plt # libtrace may not be available
except:
raise nose.SkipTest

flowqueue = mp.Queue(QUEUE_SIZE)
observer_shutdown_queue = mp.Queue(QUEUE_SIZE)

Expand Down

0 comments on commit 6f61212

Please sign in to comment.