[chutney/master] Traffic: make the unit test compatible with python 3

12 Apr
2019
12 Apr
'19
2:43 a.m.
commit c5ed1580d9b864287068c3b4fa3620835c3c8ede Author: teor <teor@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)
2258
Age (days ago)
2258
Last active (days ago)
0 comments
1 participants
participants (1)
-
teor@torproject.org