diff .travis.yml @ 6496:13d9c0833b55

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.
author John Rouillard <rouilj@ieee.org>
date Mon, 06 Sep 2021 17:43:59 -0400
parents 172b8b774d0d
children fe328b70184c
line wrap: on
line diff
--- a/.travis.yml	Mon Sep 06 17:06:07 2021 -0400
+++ b/.travis.yml	Mon Sep 06 17:43:59 2021 -0400
@@ -146,7 +146,7 @@
 script:
   - PATH=$VIRTUAL_ENV/bin:$PATH
   - export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
-  - py.test 
+  - [[ $TRAVIS_PYTHON_VERSION != "2."* ]] && py.test 
     -W default
     -W "ignore:SelectableGroups:DeprecationWarning" 
     -W "ignore:the imp module:DeprecationWarning:gpg.gpgme:15" 
@@ -154,6 +154,8 @@
     -W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" 
     -W "ignore:unclosed file:ResourceWarning:enum" 
     -v --maxfail=20 test/ --cov=roundup
-  
+  - [[ $TRAVIS_PYTHON_VERSION == "2."*  ]] && py.test 
+    -v --maxfail=20 test/ --cov=roundup
+
 after_success:
   - codecov

Roundup Issue Tracker: http://roundup-tracker.org/