Skip to content

Commit

Permalink
Fix running tests locally.
Browse files Browse the repository at this point in the history
Move installation of pytest-logger into setup.py. Apparently all hooks in conftest.py need to be known to pytest, otherwise the tests fail.
  • Loading branch information
Yevgeni Litvin authored and selitvin committed Oct 10, 2018
1 parent ed40cea commit b61fe55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ install:
# pyarrow was compiled against a newer version of numpy than we require so we need to upgrade it
# (or optionally install pyarrow from source instead of through binaries)
- pip install --upgrade numpy
- pip install pytest-timeout pytest-logger
- pip install pytest-timeout

before_script:
# enable core dumps
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
'pytest>=3.0.0',
'pytest-cov>=2.5.1',
'pytest-forked>=0.2',
'pytest-logger>=0.4.0',
],
'torch': ['torchvision>=0.2.1'],
}
Expand Down

0 comments on commit b61fe55

Please sign in to comment.