Skip to content

Commit

Permalink
TST Do not depend on "redis" being importable
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed May 2, 2022
1 parent 69a3ab7 commit 417cfb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jug/tests/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
import jug.backends.redis_store
import jug.backends.file_store
import jug.backends.dict_store
from jug.backends.redis_store import redis
import pytest

if not os.getenv('TEST_REDIS'):
redis = None
else:
from jug.backends.redis_store import redis

try:
redisConnectionError = redis.ConnectionError
Expand Down

0 comments on commit 417cfb9

Please sign in to comment.