[pypy-commit] cffi default: Generalize the test to pass

arigo pypy.commits at gmail.com
Sat Sep 16 11:48:20 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r3017:6586a1f5720d
Date: 2017-09-16 17:48 +0200
http://bitbucket.org/cffi/cffi/changeset/6586a1f5720d/

Log:	Generalize the test to pass

diff --git a/testing/cffi0/test_version.py b/testing/cffi0/test_version.py
--- a/testing/cffi0/test_version.py
+++ b/testing/cffi0/test_version.py
@@ -36,7 +36,7 @@
     v = cffi.__version__.replace('+', '')
     p = os.path.join(parent, 'doc', 'source', 'installation.rst')
     content = open(p).read()
-    assert ("cffi/cffi-%s.tar.gz" % v) in content
+    assert ("/cffi-%s.tar.gz" % v) in content
 
 def test_setup_version():
     parent = os.path.dirname(os.path.dirname(cffi.__file__))


More information about the pypy-commit mailing list