]> git.notmuchmail.org Git - notmuch/commitdiff
python: fix the test asserting that reading the version succeeded
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Sun, 29 Apr 2012 14:21:32 +0000 (16:21 +0200)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Sun, 29 Apr 2012 14:21:32 +0000 (16:21 +0200)
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/setup.py

index b46ac8dd07ca99b4985f145a2883e4f71274ed4a..0b407243d91abe84014b3f3d2fc09bb0b0c3555e 100644 (file)
@@ -7,7 +7,8 @@ from distutils.core import setup
 version_file = os.path.join(os.path.dirname(__file__),
                             'notmuch', 'version.py')
 exec(compile(open(version_file).read(), version_file, 'exec'))
-assert __VERSION__, 'Failed to read the notmuch binding version number'
+assert '__VERSION__' in globals(), \
+    'Failed to read the notmuch binding version number'
 
 setup(name='notmuch',
       version=__VERSION__,