[tor-commits] [chutney/master] Traffic: make the unit test compatible with python 3
teor at torproject.org
teor at torproject.org
Fri Apr 12 02:43:09 UTC 2019
commit c5ed1580d9b864287068c3b4fa3620835c3c8ede
Author: teor <teor at torproject.org>
Date: Mon Apr 8 15:02:55 2019 +1000
Traffic: make the unit test compatible with python 3
Part of 30063.
---
lib/chutney/Traffic.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/chutney/Traffic.py b/lib/chutney/Traffic.py
index cb0af2f..26976db 100755
--- a/lib/chutney/Traffic.py
+++ b/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)
More information about the tor-commits
mailing list