Author: Philip Jenvey <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to