[pypy-commit] pypy py3k: bah, fix the test by actualling calling the code *inside* raises()

antocuni noreply at buildbot.pypy.org
Fri Feb 24 20:13:45 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52887:55a73e1d6fcc
Date: 2012-02-24 20:11 +0100
http://bitbucket.org/pypy/pypy/changeset/55a73e1d6fcc/

Log:	bah, fix the test by actualling calling the code *inside* raises()

diff --git a/pypy/module/__builtin__/test/test_functional.py b/pypy/module/__builtin__/test/test_functional.py
--- a/pypy/module/__builtin__/test/test_functional.py
+++ b/pypy/module/__builtin__/test/test_functional.py
@@ -143,7 +143,7 @@
        assert list(range(0, 10, A())) == [0, 5]
 
    def test_range_float(self):
-      raises(TypeError, range(0.1, 2.0, 1.1))
+      raises(TypeError, "range(0.1, 2.0, 1.1)")
 
    def test_range_long(self):
        import sys


More information about the pypy-commit mailing list