aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings
diff options
context:
space:
mode:
authorGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-04-29 16:21:32 +0200
committerGravatar Justus Winter <4winter@informatik.uni-hamburg.de>2012-04-29 16:21:32 +0200
commit99b4ae1a887f2e31246e5e8fe6ea874b1d4277a9 (patch)
treea6088c82ecbb80f1bcbb48e540a3e5da12af069b /bindings
parent61cf962df8f2000d7a9d4cbaf8c87970278d54f7 (diff)
python: fix the test asserting that reading the version succeeded
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
index b46ac8dd..0b407243 100644
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -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__,