diff --git a/.vscode/spellright.dict b/.vscode/spellright.dict index c80f2a462..b7a590167 100644 --- a/.vscode/spellright.dict +++ b/.vscode/spellright.dict @@ -250,3 +250,4 @@ Changelog Bugfixes Dockerfile ― +nt diff --git a/flexmeasures/data/tests/utils.py b/flexmeasures/data/tests/utils.py index f966502e2..8b59a333f 100644 --- a/flexmeasures/data/tests/utils.py +++ b/flexmeasures/data/tests/utils.py @@ -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)