Revision 18aab5b7 mininet/test/test_hifi.py

View differences:

mininet/test/test_hifi.py
42 42

  
43 43
    switchClass = None # overridden in subclasses
44 44

  
45
    def tearDown( self ):
45
    @staticmethod
46
    def tearDown():
46 47
        "Clean up if necessary"
47 48
        if sys.exc_info != ( None, None, None ):
48 49
            cleanup()
......
151 152
        # As long as the kernel doesn't wait a long time before
152 153
        # delivering bytes to the iperf server, its reported data rate
153 154
        # should be close to the actual receive rate.
154
        serverRate, clientRate = bw_strs
155
        serverRate, _clientRate = bw_strs
155 156
        bw = float( serverRate.split(' ')[0] )
156 157
        self.assertWithinTolerance( bw, BW, BW_TOLERANCE, msg )
157 158

  

Also available in: Unified diff