[pypy-commit] pypy py3.5: Disable tests requiring dict view classes to not be callable, see eb0bd5f16264
rlamy
pypy.commits at gmail.com
Sat Jan 26 16:26:23 EST 2019
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r95731:ab129900b464
Date: 2019-01-26 21:25 +0000
http://bitbucket.org/pypy/pypy/changeset/ab129900b464/
Log: Disable tests requiring dict view classes to not be callable, see
eb0bd5f16264
diff --git a/lib-python/3/test/test_dictviews.py b/lib-python/3/test/test_dictviews.py
--- a/lib-python/3/test/test_dictviews.py
+++ b/lib-python/3/test/test_dictviews.py
@@ -1,9 +1,11 @@
+from test import support
import copy
import pickle
import unittest
class DictSetTest(unittest.TestCase):
+ @support.cpython_only
def test_constructors_not_callable(self):
kt = type({}.keys())
self.assertRaises(TypeError, kt, {})
diff --git a/pypy/objspace/std/test/test_dictmultiobject.py b/pypy/objspace/std/test/test_dictmultiobject.py
--- a/pypy/objspace/std/test/test_dictmultiobject.py
+++ b/pypy/objspace/std/test/test_dictmultiobject.py
@@ -787,17 +787,6 @@
assert len(d.items()) == 2
assert len(d.values()) == 2
- def test_constructors_not_callable(self):
- kt = type({}.keys())
- raises(TypeError, kt, {})
- raises(TypeError, kt)
- it = type({}.items())
- raises(TypeError, it, {})
- raises(TypeError, it)
- vt = type({}.values())
- raises(TypeError, vt, {})
- raises(TypeError, vt)
-
def test_dict_keys(self):
d = {1: 10, "a": "ABC"}
keys = d.keys()
More information about the pypy-commit
mailing list