File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 55except ImportError :
66 import unittest
77import os
8+ import sys
89import shutil
910import subprocess
1011import pytest
@@ -1396,6 +1397,17 @@ def test_trytryagain(self):
13961397 b ("6fa59d73bf0446ae8743cf748fc5ac11d5585a90356417e97155c3bc" ),
13971398 )
13981399
1400+ def test_trytryagain_single (self ):
1401+ tta = util .randrange_from_seed__trytryagain
1402+ order = 2 ** 8 - 2
1403+ seed = b"text"
1404+ n = tta (seed , order )
1405+ # known issue: https://github.com/warner/python-ecdsa/issues/221
1406+ if sys .version_info < (3 , 0 ): # pragma: no branch
1407+ self .assertEqual (n , 228 )
1408+ else :
1409+ self .assertEqual (n , 18 )
1410+
13991411 @given (st .integers (min_value = 0 , max_value = 10 ** 200 ))
14001412 def test_randrange (self , i ):
14011413 # util.randrange does not provide long-term stability: we might
You can’t perform that action at this time.
0 commit comments