[pypy-commit] pypy py3.5: Let all tests pass with -A. Remove the obsolete skip instructions:
amauryfa
pypy.commits at gmail.com
Sun Oct 9 12:13:14 EDT 2016
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.5
Changeset: r87670:d4253042e13e
Date: 2016-10-09 18:12 +0200
http://bitbucket.org/pypy/pypy/changeset/d4253042e13e/
Log: Let all tests pass with -A. Remove the obsolete skip instructions:
at least with python3, we always test with the same version as the
PyPy version.
diff --git a/pypy/module/itertools/test/test_itertools.py b/pypy/module/itertools/test/test_itertools.py
--- a/pypy/module/itertools/test/test_itertools.py
+++ b/pypy/module/itertools/test/test_itertools.py
@@ -598,7 +598,7 @@
class MyIterator(object):
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
raise NotImplementedError
def __copy__(self):
return iter('def')
@@ -623,12 +623,6 @@
class AppTestItertools26:
spaceconfig = dict(usemodules=['itertools'])
- def setup_class(cls):
- if cls.space.is_true(cls.space.appexec([], """():
- import sys; return sys.version_info < (2, 6)
- """)):
- py.test.skip("Requires Python 2.6")
-
def test_count_overflow(self):
import itertools, sys
it = itertools.count(sys.maxsize - 1)
@@ -1071,12 +1065,6 @@
class AppTestItertools32:
spaceconfig = dict(usemodules=['itertools'])
- def setup_class(cls):
- if cls.space.is_true(cls.space.appexec([], """():
- import sys; return sys.version_info < (3, 2)
- """)):
- py.test.skip("Requires Python 3.2")
-
def test_accumulate(self):
"""copied from ./lib-python/3/test/test_itertools.py"""
from itertools import accumulate
More information about the pypy-commit
mailing list