Skip to content

Commit 4ee1618

Browse files
committed
Fix install issues in travis (py3.7)
1 parent 8aaddbc commit 4ee1618

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ env:
1212
- CELERY=4
1313
- CELERY=5
1414
before_install:
15+
- pip install --upgrade pip
1516
- pip install poetry
1617
install:
1718
- poetry install -v
18-
- if [[ $CELERY == "4" ]]; then travis_retry poetry add celery^4; fi
19-
- poetry show
20-
script: python -m pytest
19+
- if [[ $CELERY == "4" ]]; then pip install "celery>=4, <5"; fi
20+
script: python -m pytest

tests/test_singleton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def simple_task(*args):
410410
args = [uuid.uuid4(), uuid.uuid4(), uuid.uuid4()]
411411

412412
with pytest.raises(
413-
TypeError, match="Object of type UUID is not JSON serializable"
413+
TypeError, match=r"Object of type '?UUID'? is not JSON serializable"
414414
):
415415
[simple_task.apply_async(args=args) for i in range(10)]
416416

0 commit comments

Comments
 (0)