diff options
Diffstat (limited to 'tests/test_rand.py')
-rw-r--r-- | tests/test_rand.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/test_rand.py b/tests/test_rand.py index ac3965b..bdd3af0 100644 --- a/tests/test_rand.py +++ b/tests/test_rand.py @@ -100,28 +100,6 @@ class TestRand(object): # entropy or not. assert rand.status() in (0, 1) - @pytest.mark.parametrize('args', [ - (b"foo", 255), - (b"foo",), - ]) - def test_egd_warning(self, args): - """ - Calling egd raises :exc:`DeprecationWarning`. - """ - pytest.deprecated_call(rand.egd, *args) - - @pytest.mark.parametrize('args', [ - (None, 255), - (b"foo", None), - ]) - def test_egd_wrong_args(self, args): - """ - `OpenSSL.rand.egd` raises `TypeError` if called with a non-`int` - or non-`str` argument. - """ - with pytest.raises(TypeError): - rand.egd(*args) - def test_cleanup(self): """ `OpenSSL.rand.cleanup` releases the memory used by the PRNG and |