diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-10-16 22:02:32 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2018-02-05 22:23:24 +0100 |
commit | 468b688cfe1aff460f5a55c471ff99a9ac732ec2 (patch) | |
tree | e7de0c2a5232db6ada1357a33d1e47605773d494 /tests | |
parent | bbfa8cd9bfae22c999a29e4755be0b88c1160921 (diff) | |
download | m2crypto-468b688cfe1aff460f5a55c471ff99a9ac732ec2.tar.gz |
OpenSSL in 1.1.* it returns -1 on failure of RAND_load_file().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_rand.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_rand.py b/tests/test_rand.py index b09c009..0cc6675 100644 --- a/tests/test_rand.py +++ b/tests/test_rand.py @@ -46,7 +46,7 @@ class RandTestCase(unittest.TestCase): os.remove('tests/randpool.dat') except OSError: pass - self.assertEqual(Rand.load_file('tests/randpool.dat', -1), 0) + self.assertIn(Rand.load_file('tests/randpool.dat', -1), [0, -1]) self.assertEqual(Rand.save_file('tests/randpool.dat'), 1024) self.assertEqual(Rand.load_file('tests/randpool.dat', -1), 1024) |