diff options
Diffstat (limited to 'testing/cffi0/test_version.py')
| -rw-r--r-- | testing/cffi0/test_version.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/cffi0/test_version.py b/testing/cffi0/test_version.py index 9325685..d380b98 100644 --- a/testing/cffi0/test_version.py +++ b/testing/cffi0/test_version.py @@ -36,7 +36,12 @@ def test_doc_version_file(): v = cffi.__version__.replace('+', '') p = os.path.join(parent, 'doc', 'source', 'installation.rst') content = open(p).read() - assert (" package version %s:" % v) in content + if " package version %s:" % v not in content: + for i in range(5): + if " package version %s-%d:" % (v, i) in content: + break + else: + assert 0, "doc/source/installation.rst needs updating" def test_setup_version(): parent = os.path.dirname(os.path.dirname(cffi.__file__)) |
