Skip to content

Commit 7baddb6

Browse files
committed
Skip tests for PyPy
1 parent 00ea218 commit 7baddb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test_functools32.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def test_attributes(self):
4848
# attributes should not be writable
4949
if not isinstance(self.thetype, type):
5050
return
51+
if "__pypy__" in sys.modules:
52+
raise unittest.SkipTest("In the PyPy execution environment")
5153
self.assertRaises(TypeError, setattr, p, 'func', map)
5254
self.assertRaises(TypeError, setattr, p, 'args', (1, 2))
5355
self.assertRaises(TypeError, setattr, p, 'keywords', dict(a=1, b=2))
@@ -138,6 +140,8 @@ def test_weakref(self):
138140
f = self.thetype(int, base=16)
139141
p = proxy(f)
140142
self.assertEqual(f.func, p.func)
143+
if "__pypy__" in sys.modules:
144+
raise unittest.SkipTest("In the PyPy execution environment")
141145
f = None
142146
self.assertRaises(ReferenceError, getattr, p, 'func')
143147

0 commit comments

Comments
 (0)