Skip to content

Commit

Permalink
tests: exercise same new logic
Browse files Browse the repository at this point in the history
Fixes the 'pypy3' tests.
  • Loading branch information
tseaver committed May 26, 2024
1 parent 04d0dee commit 8de764e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/zope/hookable/tests/test_hookable.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,16 @@ class PyHookableTests(PyHookableMixin,
unittest.TestCase):

def test_pure_python(self):
from zope.hookable import _PYPY_OR_JAVA
from zope.hookable import _PURE_PYTHON
from zope.hookable import _c_hookable
from zope.hookable import _py_hookable
from zope.hookable import hookable
self.assertIs(hookable, _py_hookable if _PURE_PYTHON else _c_hookable)

if _PYPY_OR_JAVA or _PURE_PYTHON:
self.assertIs(hookable, _py_hookable)
else:
self.assertIs(hookable, _c_hookable)

def test_before_hook(self):
hooked = self._callFUT(return_foo)
Expand Down

0 comments on commit 8de764e

Please sign in to comment.