From 263017258324e156b039139b33c83d75f1cbef06 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Thu, 18 Jul 2024 16:55:44 +0200 Subject: [PATCH] fix pypy --- tests/queue_runner_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/queue_runner_test.py b/tests/queue_runner_test.py index 05207f1..9487d35 100644 --- a/tests/queue_runner_test.py +++ b/tests/queue_runner_test.py @@ -5,6 +5,7 @@ from datetime import datetime as DateTime, timedelta as TimeDelta import os +import sys from boltons.timeutils import UTC import pytest @@ -27,6 +28,8 @@ def path_maildir(tmpdir): return _path_maildir +@pytest.skipIf(sys.implementation.name == 'pypy', reason='"time-machine" does not work on PyPy') +# https://github.com/adamchainz/time-machine/issues/305 def test_can_move_stale_messages_back_to_new(path_maildir): mailer = DebugMailer() inject_example_message(path_maildir, target_folder='cur')