Author: Matti Picus <matti.pi...@gmail.com> Branch: Changeset: r97562:bcb0c566c840 Date: 2019-09-20 12:21 +0300 http://bitbucket.org/pypy/pypy/changeset/bcb0c566c840/
Log: test that pycparser is latest version diff --git a/extra_tests/cffi_tests/test_egg_version.py b/extra_tests/cffi_tests/test_version.py rename from extra_tests/cffi_tests/test_egg_version.py rename to extra_tests/cffi_tests/test_version.py --- a/extra_tests/cffi_tests/test_egg_version.py +++ b/extra_tests/cffi_tests/test_version.py @@ -1,6 +1,7 @@ from email.parser import Parser import py +import urllib2 import cffi import pypy @@ -10,3 +11,12 @@ def test_egg_version(): info = Parser().parsestr(egg_info.read()) assert info['version'] == cffi.__version__ + +def test_pycparser_version(): + url = 'https://raw.githubusercontent.com/eliben/pycparser/master/pycparser/__init__.py' + source = urllib2.urlopen(url).read() + dest = py.path.local(__file__).join('..', '..', '..', 'lib_pypy', 'cffi', + '_pycparser', '__init__.py').read() + # if this fails, the vendored pycparser is not the latest version + assert source.strip() == dest.strip() + _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit