Skip to content

Commit 75fdbff

Browse files
committed
Remove nose import of with_setup
1 parent 2333cb3 commit 75fdbff

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

minicps/utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
import os
1717

1818
from mininet.util import dumpNodeConnections
19-
from nose import with_setup
20-
2119

2220
# logging {{{1
2321
# https://docs.python.org/2/howto/logging.html
@@ -118,14 +116,6 @@ def teardown_func(test_name):
118116
pass
119117

120118

121-
def with_named_setup(setup=None, teardown=None):
122-
def wrap(f):
123-
return with_setup(
124-
lambda: setup(f.__name__) if (setup is not None) else None,
125-
lambda: teardown(f.__name__) if (teardown is not None) else None)(f)
126-
return wrap
127-
128-
129119
# TODO: test it
130120
def _arp_cache_rtts(net, h1, h2):
131121
"""Learning check on the first two ping ICMP packets RTT.

0 commit comments

Comments
 (0)