[tor-commits] [bridgedb/master] Fix a unittest for PluggableTransport.
isis at torproject.org
isis at torproject.org
Sat Jul 25 19:26:19 UTC 2015
commit 31a6b5a18ba9b5319d1c32a1fda147f502b52827
Author: Isis Lovecruft <isis at torproject.org>
Date: Sun May 10 22:57:28 2015 +0000
Fix a unittest for PluggableTransport.
The ptargs was supposed to be a list, and previously it was erroneously
a string.
---
lib/bridgedb/test/test_bridges.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bridgedb/test/test_bridges.py b/lib/bridgedb/test/test_bridges.py
index 99fc458..88b858e 100644
--- a/lib/bridgedb/test/test_bridges.py
+++ b/lib/bridgedb/test/test_bridges.py
@@ -1715,7 +1715,8 @@ class BridgeTests(unittest.TestCase):
self.bridge.updateFromServerDescriptor(self.serverdescriptor)
obfs4 = self.extrainfo.transport['obfs4']
- obfs4 = (u'1.1.1.1', 1111, obfs4[-1][-1].replace('iat-mode=0,', ''))
+ ptargs = [str(obfs4[-1][-1].replace('iat-mode=0', '')),]
+ obfs4 = (u'1.1.1.1', 1111, ptargs)
self.extrainfo.transport['obfs4'] = obfs4
self.bridge.updateFromExtraInfoDescriptor(self.extrainfo)
More information about the tor-commits
mailing list