Skip to content

Commit

Permalink
Disable a test in PyPy due to different behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Feb 20, 2024
1 parent 5796bcb commit 6e8cb6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lupa/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1345,12 +1345,13 @@ def test_python_iter_iterator(self):


class TestLuaCoroutines(SetupLuaRuntimeMixin, LupaTestCase):

@unittest.skipIf(IS_PYPY, "attribute access differs in PyPy")
def test_coroutine_object(self):
f = self.lua.eval("function(N) coroutine.yield(N) end")
gen = f.coroutine(5)
self.assertRaises(AttributeError, getattr, gen, '__setitem__')
if not IS_PYPY:
self.assertRaises(AttributeError, setattr, gen, 'send', 5)
self.assertRaises(AttributeError, setattr, gen, 'send', 5)
self.assertRaises(AttributeError, setattr, gen, 'no_such_attribute', 5)
self.assertRaises(AttributeError, getattr, gen, 'no_such_attribute')
self.assertRaises(AttributeError, gen.__getattr__, 'no_such_attribute')
Expand Down

0 comments on commit 6e8cb6d

Please sign in to comment.