Skip to content

Commit e230b27

Browse files
committed
[travis] Make tox use Python 3.7 for the travis's lint stage
Because we make use of some mock methods in module `test_util` (eg: `mock.assert_called_once`) which were introduced in python 3.6, so if the system python of the test system is lower than 3.6, then the tox tests will fail
1 parent a24f1e3 commit e230b27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
include:
3434
- stage: lint
3535
name: "Tox tests and coverage"
36+
language: python
37+
python: 3.7
3638
script:
3739
# we want to fail fast on tox errors without having to `docker build` first
3840
- tox -- tests/ --ignore tests/test_pythonpackage.py

0 commit comments

Comments
 (0)