From 73f1475065e4d7ae93d57b0f5f47f7eabc95d22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 19 Jan 2026 18:04:47 +0100 Subject: [PATCH] Fix tests with pytest 9 pytest deprecated applying marks on fixtures in version 8 (https://github.com/pytest-dev/pytest/issues/3664) and turned it into error in version 9. My suspicion is anything applied to pytest.fixture throws an error now because of that. --- test/test_client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test/test_client.py b/test/test_client.py index 92f9467..cadf470 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -21,7 +21,6 @@ def notifications(tokens): return [Notification(token=token, payload=payload) for token in tokens] -@patch('apns2.credentials.init_context') @pytest.fixture def client(mock_connection): with patch('apns2.credentials.HTTP20Connection') as mock_connection_constructor: