[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Unit testing error with python3



commit 6e7cb008ac9f140803c1792792438b8a34cdbe3f
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Sat Jul 16 10:41:49 2016 -0700

    Unit testing error with python3
    
    Oops, the 'L' suffix for numbers makes python3 sad. Turns out python2 doesn't
    care about it either so simple fix...
    
      https://trac.torproject.org/projects/tor/ticket/19692
---
 test/unit/util/connection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/unit/util/connection.py b/test/unit/util/connection.py
index 14d19a2..b7ca4c6 100644
--- a/test/unit/util/connection.py
+++ b/test/unit/util/connection.py
@@ -503,7 +503,7 @@ class TestConnection(unittest.TestCase):
     self.assertEqual(2, stem.util.connection.address_to_int('0.0.0.2'))
     self.assertEqual(256, stem.util.connection.address_to_int('0.0.1.0'))
     self.assertEqual(2130706433, stem.util.connection.address_to_int('127.0.0.1'))
-    self.assertEqual(338288524927261089654163772891438416681L, stem.util.connection.address_to_int('fe80:0000:0000:0000:0202:b3ff:fe1e:8329'))
+    self.assertEqual(338288524927261089654163772891438416681, stem.util.connection.address_to_int('fe80:0000:0000:0000:0202:b3ff:fe1e:8329'))
 
   def test_expand_ipv6_address(self):
     """

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits