Browse Source

Traffic: make the unit test compatible with python 3

Part of 30063.
teor 5 years ago
parent
commit
c5ed1580d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/chutney/Traffic.py

+ 1 - 1
lib/chutney/Traffic.py

@@ -430,7 +430,7 @@ class TrafficTester():
 
 def main():
     """Test the TrafficTester by sending and receiving some data."""
-    DATA = "a foo is a bar" * 1000
+    DATA = b"a foo is a bar" * 1000
     bind_to = ('localhost', int(sys.argv[1]))
 
     tt = TrafficTester(bind_to, DATA)