mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
python: fix the test asserting that reading the version succeeded
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
parent
61cf962df8
commit
99b4ae1a88
1 changed files with 2 additions and 1 deletions
|
@ -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__,
|
||||
|
|
Loading…
Reference in a new issue