[pypy-svn] pypy default: Fix these tests for when the compiler is included in the version.

alex_gaynor commits-noreply at bitbucket.org
Tue Jan 18 01:33:13 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r40826:52128858379a
Date: 2011-01-17 18:32 -0600
http://bitbucket.org/pypy/pypy/changeset/52128858379a/

Log:	Fix these tests for when the compiler is included in the version.

diff --git a/pypy/module/sys/test/test_version.py b/pypy/module/sys/test/test_version.py
--- a/pypy/module/sys/test/test_version.py
+++ b/pypy/module/sys/test/test_version.py
@@ -8,7 +8,7 @@
     from pypy.module.sys import version
     monkeypatch.setattr(version, 'PYPY_VERSION', (2,5,0, "final", 1))
     res = space.unwrap(version.get_version(space))
-    assert "[PyPy 2.5.0]" in res
+    assert "[PyPy 2.5.0" in res
     monkeypatch.setattr(version, 'PYPY_VERSION', (2,6,3, "alpha", 5))
     res = space.unwrap(version.get_version(space))
-    assert "[PyPy 2.6.3-alpha5]" in res
+    assert "[PyPy 2.6.3-alpha5" in res


More information about the Pypy-commit mailing list