summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2014-12-05 23:14:42 -0500
committerDonald Stufft <donald@stufft.io>2014-12-05 23:14:42 -0500
commit595b2f501411947f96606714645d2bf4f849704a (patch)
treee8086256ab9b93166d1b1d8652009116547dfd9a /tests
parent8604f11bb82bb9b7632d16e42614c4bbc290b773 (diff)
downloadpy-bcrypt-git-595b2f501411947f96606714645d2bf4f849704a.tar.gz
Disable the ability to implicitly compile the CFFI module
Diffstat (limited to 'tests')
-rw-r--r--tests/test_bcrypt.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py
index 8e6ff19..bb32299 100644
--- a/tests/test_bcrypt.py
+++ b/tests/test_bcrypt.py
@@ -9,6 +9,11 @@ import six
import bcrypt
+def test_raise_implicit_compile():
+ with pytest.raises(RuntimeError):
+ bcrypt._compile_module()
+
+
def test_gensalt_basic(monkeypatch):
urandom = mock.Mock(return_value=b"0000000000000000")
monkeypatch.setattr(os, "urandom", urandom)