[pypy-commit] pypy stdlib-2.7.12: pypy allows __slots__ here
pjenvey
pypy.commits at gmail.com
Sat Oct 8 18:40:11 EDT 2016
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: stdlib-2.7.12
Changeset: r87636:dfb9141e596d
Date: 2016-10-08 15:34 -0700
http://bitbucket.org/pypy/pypy/changeset/dfb9141e596d/
Log: pypy allows __slots__ here
diff --git a/lib-python/2.7/test/test_builtin.py b/lib-python/2.7/test/test_builtin.py
--- a/lib-python/2.7/test/test_builtin.py
+++ b/lib-python/2.7/test/test_builtin.py
@@ -1795,8 +1795,9 @@
type('A', (B,), {})
def test_bad_slots(self):
- with self.assertRaises(TypeError):
- type('A', (long,), {'__slots__': 'x'})
+ if not check_impl_detail(pypy=True):
+ with self.assertRaises(TypeError):
+ type('A', (long,), {'__slots__': 'x'})
with self.assertRaises(TypeError):
type('A', (), {'__slots__': ''})
with self.assertRaises(TypeError):
More information about the pypy-commit
mailing list