diff --git a/tests/test_handlers.py b/tests/test_handlers.py index 0e397de..46aff04 100644 --- a/tests/test_handlers.py +++ b/tests/test_handlers.py @@ -1,5 +1,8 @@ +from platform import python_implementation from unittest.mock import MagicMock, patch +from pytest import mark + from django.core.cache import cache from django.test import override_settings from django.urls import reverse @@ -206,6 +209,7 @@ class ResetAttemptsTestCase(AxesHandlerBaseTestCase): AXES_COOLOFF_TIME=timedelta(seconds=2), AXES_RESET_ON_SUCCESS=True, ) +@mark.xfail(python_implementation() == "PyPy", reason="PyPy implementation is flaky for this test", strict=False) class AxesDatabaseHandlerTestCase(AxesHandlerBaseTestCase): def test_handler_reset_attempts(self): self.create_attempt()