diff options
Diffstat (limited to 'testing/cffi0/test_version.py')
-rw-r--r-- | testing/cffi0/test_version.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/cffi0/test_version.py b/testing/cffi0/test_version.py index eb378f1..7485db1 100644 --- a/testing/cffi0/test_version.py +++ b/testing/cffi0/test_version.py @@ -53,3 +53,10 @@ def test_c_version(): content = open(p).read() #v = BACKEND_VERSIONS.get(v, v) assert (('assert __version__ == "%s"' % v) in content) + +def test_embedding_h(): + parent = os.path.dirname(os.path.dirname(cffi.__file__)) + v = cffi.__version__ + p = os.path.join(parent, 'cffi', '_embedding.h') + content = open(p).read() + assert ('cffi version: %s"' % (v,)) in content |