File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 28
28
"matplotlib" ,
29
29
"geopandas" ,
30
30
"flake8>=5.0.0" ,
31
- "time_machine>=2.13.0 " ,
31
+ "time_machine" ,
32
32
"pyproj>=3.2.0" , # Pyproj is an optional, best-effort runtime dependency
33
33
"dirty_equals>=0.6.0" ,
34
34
# (#578) On Python 3.7: avoid dirty_equals 0.7.1 which wrongly claims to be Python 3.7 compatible
Original file line number Diff line number Diff line change 1
1
import datetime
2
2
import json
3
3
import re
4
+ import sys
4
5
import textwrap
5
6
import threading
6
7
import time
@@ -509,6 +510,11 @@ def test_automatic_cancel_of_too_long_running_jobs(
509
510
cancel_after_seconds ,
510
511
expected_status ,
511
512
):
513
+ if not hasattr (time_machine , "shift" ):
514
+ # TODO #578 remove this hack to skip this test on Python 3.7
515
+ # `time_machine.shift` is only available since timemachine>=2.13.0, which only support Python 3.8 and up
516
+ pytest .skip ("time_machine.shift not available" )
517
+
512
518
fake_backend = FakeBackend (requests_mock = requests_mock )
513
519
514
520
# For simplicity, set up pre-existing job with status "running" (instead of job manager creating+starting it)
You can’t perform that action at this time.
0 commit comments