diff --git a/examples/test/test_linearbandwidth.py b/examples/test/test_linearbandwidth.py index c471e2c..b431d7b 100755 --- a/examples/test/test_linearbandwidth.py +++ b/examples/test/test_linearbandwidth.py @@ -34,8 +34,11 @@ class testLinearBandwidth( unittest.TestCase ): bw *= 10 ** 9 # check that we have a previous result to compare to if n != 1: - self.assertTrue( bw < previous_bw ) - previous_bw = bw + info = ( 'bw: %d bits/s across %d switches, ' + 'previous: %d bits/s across %d switches' % + ( bw, n, previous_bw, previous_n ) ) + self.assertTrue( bw < previous_bw, info ) + previous_bw, previous_n = bw, n else: break