[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Hotfix unittest failure due to fix for #12664.
commit 37efc108fdceb49e4c91034b07fd9d12b4e81ea1
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Wed Feb 11 08:02:18 2015 +0000
Hotfix unittest failure due to fix for #12664.
The newlines in bridgelines for the HTTPS distributor were changed, but
not in the unittests. This fixes the unittests in test_https.py.
---
lib/bridgedb/test/test_https.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/test/test_https.py b/lib/bridgedb/test/test_https.py
index 4624f08..5225dc3 100644
--- a/lib/bridgedb/test/test_https.py
+++ b/lib/bridgedb/test/test_https.py
@@ -131,7 +131,7 @@ class HTTPTests(unittest.TestCase):
self.assertTrue(soup, "Could not find <div class='bridge-lines'>!")
for portion in soup:
- bridge_lines = portion.text.strip().split('\n')
+ bridge_lines = portion.text.strip().split('<br></br>')
for bridge_line in bridge_lines:
fields = bridge_line.split()
bridges.append(fields)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits