[tor-commits] [stem/master] Fix test regression when ed25519 support missing

atagar at torproject.org atagar at torproject.org
Tue Nov 19 23:32:00 UTC 2019


commit 68067949799e43e803265a2bb38c716b066ad87a
Author: Damian Johnson <atagar at torproject.org>
Date:   Tue Nov 19 15:30:45 2019 -0800

    Fix test regression when ed25519 support missing
    
    Oops, accidently commited a local hack I made while troubleshooting my openssl
    bindings. This in turn broke our jenkins test runs...
    
      ======================================================================
      ERROR: test_inner_layer_creation
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/srv/jenkins-workspace/workspace/stem-tor-ci/test/unit/descriptor/hidden_service_v3.py", line 343, in test_inner_layer_creation
          IntroductionPointV3.create('1.1.1.1', 9001),
        File "/srv/jenkins-workspace/workspace/stem-tor-ci/stem/descriptor/hidden_service.py", line 230, in create
          raise ImportError('Introduction point creation requires the cryptography module ed25519 support')
      ImportError: Introduction point creation requires the cryptography module ed25519 support
    
      ----------------------------------------------------------------------
---
 test/unit/descriptor/hidden_service_v3.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/unit/descriptor/hidden_service_v3.py b/test/unit/descriptor/hidden_service_v3.py
index 3336f45f..9ef2f0bf 100644
--- a/test/unit/descriptor/hidden_service_v3.py
+++ b/test/unit/descriptor/hidden_service_v3.py
@@ -310,6 +310,7 @@ class TestHiddenServiceDescriptorV3(unittest.TestCase):
     reparsed = IntroductionPointV3.parse(intro_point.encode())
     self.assertEqual(intro_point, reparsed)
 
+  @test.require.ed25519_support
   def test_inner_layer_creation(self):
     """
     Internal layer creation.



More information about the tor-commits mailing list