Skip to content

Commit

Permalink
Merge 1b453fc into d615144
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoening committed May 9, 2023
2 parents d615144 + 1b453fc commit 7921ae8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .vscode/spellright.dict
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,4 @@ Changelog
Bugfixes
Dockerfile
nt
12 changes: 7 additions & 5 deletions flexmeasures/data/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

import click

if os.name == "nt":
from rq_win import WindowsWorker as SimpleWorker
else:
from rq import SimpleWorker


def work_on_rq(redis_queue, exc_handler=None):

# we only want this import distinction to matter when we actually are testing
if os.name == "nt":
from rq_win import WindowsWorker as SimpleWorker
else:
from rq import SimpleWorker

exc_handlers = []
if exc_handler is not None:
exc_handlers.append(exc_handler)
Expand Down

0 comments on commit 7921ae8

Please sign in to comment.