summaryrefslogtreecommitdiff
path: root/src/OpenSSL/rand.py
diff options
context:
space:
mode:
authorAlex Chan <alex@alexwlchan.net>2016-11-18 13:53:39 +0000
committerHynek Schlawack <hs@ox.cx>2016-11-18 14:53:39 +0100
commitc60770699be48e9c3f3b4f542c8a4118be2936ab (patch)
tree9231d6ea9232d3eaeeb8db170d62b5ac2ad4d371 /src/OpenSSL/rand.py
parentec1e32d37cfc6c7be469a4b7c1c28448312362c2 (diff)
downloadpyopenssl-c60770699be48e9c3f3b4f542c8a4118be2936ab.tar.gz
Convert X509ExtTests to use pytest-style tests (#564)
Diffstat (limited to 'src/OpenSSL/rand.py')
-rw-r--r--src/OpenSSL/rand.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OpenSSL/rand.py b/src/OpenSSL/rand.py
index a22f9e5..8f51ad8 100644
--- a/src/OpenSSL/rand.py
+++ b/src/OpenSSL/rand.py
@@ -31,6 +31,7 @@ class Error(Exception):
See :manpage:`err(3)` for more information.
"""
+
_raise_current_error = partial(_exception_from_error_queue, Error)
_unspecified = object()
@@ -202,6 +203,7 @@ def screen():
"""
_lib.RAND_screen()
+
if getattr(_lib, 'RAND_screen', None) is None:
del screen