Skip to content

Commit

Permalink
Skip some job manager tests on python 3.7
Browse files Browse the repository at this point in the history
no support for `shift` on `time_machine` fixture below python 3.8

refs #590, #596, #578
  • Loading branch information
soxofaan committed Sep 4, 2024
1 parent 3ee39de commit 48fd057
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/extra/test_job_management.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime
import json
import re
import sys
import textwrap
import threading
import time
Expand Down Expand Up @@ -491,6 +492,9 @@ def start_job(row, connection_provider, connection, **kwargs):
assert set(result.status) == {"running"}
assert set(result.backend_name) == {"foo"}

@pytest.mark.skipif(
sys.version_info < (3, 8), reason="`time_machine` fixture with `shift` is not available below python 3.8. #578"
)
@pytest.mark.parametrize(
["start_time", "end_time", "end_status", "cancel_after_seconds", "expected_status"],
[
Expand Down

0 comments on commit 48fd057

Please sign in to comment.