[pypy-svn] pypy default: (fijal, arigo)

arigo commits-noreply at bitbucket.org
Wed Jan 19 18:54:51 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r40949:a0c378f93486
Date: 2011-01-19 18:52 +0100
http://bitbucket.org/pypy/pypy/changeset/a0c378f93486/

Log:	(fijal, arigo)

	Skip this test on top of CPython 2.5.

diff --git a/pypy/objspace/std/test/test_floatobject.py b/pypy/objspace/std/test/test_floatobject.py
--- a/pypy/objspace/std/test/test_floatobject.py
+++ b/pypy/objspace/std/test/test_floatobject.py
@@ -1,6 +1,6 @@
 from pypy.objspace.std import floatobject as fobj
 from pypy.objspace.std.multimethod import FailedToImplement
-import py
+import py, sys
 
 class TestW_FloatObject:
 
@@ -60,6 +60,9 @@
 
 
 class AppTestAppFloatTest:
+    def setup_class(cls):
+        cls.w_py26 = cls.space.wrap(sys.version_info >= (2, 6))
+
     def test_negatives(self):
         assert -1.1 < 0
         assert -0.1 < 0
@@ -196,7 +199,8 @@
         assert pw(-1.0, 2.0) == 1.0
         assert pw(-1.0, 3.0) == -1.0
         assert pw(-1.0, 1e200) == 1.0
-        assert pw(0.0, float("-inf")) == float("inf")
+        if self.py26:
+            assert pw(0.0, float("-inf")) == float("inf")
 
     def test_pow_neg_base(self):
         import math


More information about the Pypy-commit mailing list