[tor-commits] [bridgedb/master] Syntax error due to long integer syntax

phw at torproject.org phw at torproject.org
Wed Feb 19 18:26:37 UTC 2020


commit 61472aee2f50cd9b2b02e4045f04ceee44ea4970
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri Jan 17 12:24:12 2020 -0800

    Syntax error due to long integer syntax
    
    Python 3 no longer has a separate type for long integers (all numbers are
    covered by ints). This fixes...
    
      Traceback (most recent call last):
        File "/usr/local/lib/python3.5/dist-packages/twisted/trial/runner.py", line 823, in loadByName
          return self.suiteFactory([self.findByName(name, recurse=recurse)])
        File "/usr/local/lib/python3.5/dist-packages/twisted/trial/runner.py", line 702, in findByName
          __import__(name)
      builtins.SyntaxError: invalid syntax (test_bridgerequest.py, line 51)
    
    Test results changed as follows...
    
      before: FAILED (skips=114, failures=14, errors=158, successes=695)
      after:  FAILED (skips=114, failures=14, errors=157, successes=700)
---
 bridgedb/test/test_bridgerequest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bridgedb/test/test_bridgerequest.py b/bridgedb/test/test_bridgerequest.py
index 681d54a..80b5534 100644
--- a/bridgedb/test/test_bridgerequest.py
+++ b/bridgedb/test/test_bridgerequest.py
@@ -48,11 +48,11 @@ class BridgeRequestBaseTests(unittest.TestCase):
         should use the default client identifier string.
         """
         self.assertEqual(self.request.getHashringPlacement('AAAA'),
-                         3486762050L)
+                         3486762050)
 
     def test_BridgeRequestBase_getHashringPlacement_with_client(self):
         """BridgeRequestBase.getHashringPlacement() with a client parameter
         should use the client identifier string.
         """
         self.assertEqual(self.request.getHashringPlacement('AAAA', client='you'),
-                         2870307088L)
+                         2870307088)





More information about the tor-commits mailing list