Author: Ronan Lamy <[email protected]>
Branch:
Changeset: r95507:7eccdb844fb8
Date: 2018-12-17 17:01 +0000
http://bitbucket.org/pypy/pypy/changeset/7eccdb844fb8/
Log: rm compat code for CPython<=2.5
diff --git a/pypy/module/math/test/test_direct.py
b/pypy/module/math/test/test_direct.py
--- a/pypy/module/math/test/test_direct.py
+++ b/pypy/module/math/test/test_direct.py
@@ -6,11 +6,6 @@
from rpython.rtyper.lltypesystem.module.test.math_cases import (MathTests,
get_tester)
-consistent_host = True
-if '__pypy__' not in sys.builtin_module_names:
- if sys.version_info < (2, 6):
- consistent_host = False
-
class TestDirect(MathTests):
pass
@@ -30,8 +25,6 @@
def make_test_case((fnname, args, expected), dict):
#
def test_func(self):
- if not consistent_host:
- py.test.skip("inconsistent behavior before 2.6")
try:
fn = getattr(math, fnname)
except AttributeError:
diff --git a/pypy/module/math/test/test_math.py
b/pypy/module/math/test/test_math.py
--- a/pypy/module/math/test/test_math.py
+++ b/pypy/module/math/test/test_math.py
@@ -24,7 +24,6 @@
expected = space.wrap(expected)
cases.append(space.newtuple([space.wrap(a), space.wrap(b),
expected]))
cls.w_cases = space.newlist(cases)
- cls.w_consistent_host = space.wrap(test_direct.consistent_host)
@classmethod
def make_callable_wrapper(cls, func):
@@ -36,8 +35,6 @@
assert abs(actual - expected) < 10E-5
def test_all_cases(self):
- if not self.consistent_host:
- skip("please test this on top of PyPy or CPython >= 2.6")
import math
for fnname, args, expected in self.cases:
fn = getattr(math, fnname)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit