Skip to content

Commit d49af17

Browse files
committed
Disable wrning tests for python2.
ResourceWarning is not known to python2, so don't run with any warning flags for python 2.7 since it provides no useful info.
1 parent c3ad224 commit d49af17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,16 @@ before_script:
146146
script:
147147
- PATH=$VIRTUAL_ENV/bin:$PATH
148148
- export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
149-
- py.test
149+
- [[ $TRAVIS_PYTHON_VERSION != "2."* ]] && py.test
150150
-W default
151151
-W "ignore:SelectableGroups:DeprecationWarning"
152152
-W "ignore:the imp module:DeprecationWarning:gpg.gpgme:15"
153153
-W "ignore:'U' mode::docutils.io"
154154
-W "ignore:unclosed:ResourceWarning:roundup.roundup.demo"
155155
-W "ignore:unclosed file:ResourceWarning:enum"
156156
-v --maxfail=20 test/ --cov=roundup
157-
157+
- [[ $TRAVIS_PYTHON_VERSION == "2."* ]] && py.test
158+
-v --maxfail=20 test/ --cov=roundup
159+
158160
after_success:
159161
- codecov

0 commit comments

Comments
 (0)