changeset 5919:d789c28db503

issue2551025: try handling operational error exception in close #3 Got something that worked last time. Remove debugging print statement. return travis config to normal.
author John Rouillard <rouilj@ieee.org>
date Sun, 13 Oct 2019 13:52:44 -0400
parents 10fb641f5152
children ff7e089fd4ef
files .travis.yml roundup/backends/back_mysql.py
diffstat 2 files changed, 8 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/.travis.yml	Sun Oct 13 13:37:29 2019 -0400
+++ b/.travis.yml	Sun Oct 13 13:52:44 2019 -0400
@@ -2,11 +2,11 @@
 
 python:
   - 2.7
-#test#  - 3.4
-#test#  - 3.5
-#test#  - 3.6
-#test#  - 3.7
-#test#  - nightly
+  - 3.4
+  - 3.5
+  - 3.6
+  - 3.7
+  - nightly
 
 #I would like to build and test the maint-1.6 and trunk/default
 #but we need different environments for these:
@@ -84,7 +84,6 @@
   - cd $TRAVIS_BUILD_DIR
 
 install:
-#test#  - pip install mysqlclient==1.3.13
   - pip install mysqlclient
   - pip install psycopg2
   - pip install gpg pytz whoosh pyjwt
@@ -108,9 +107,8 @@
 script:
   - PATH=$VIRTUAL_ENV/bin:$PATH
   - export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
-  - py.test -v test/test_mysql.py
-#test#  - py.test -v test/ --cov=roundup
+  - py.test -v test/ --cov=roundup
   
 
-#test#after_success:
-#test#  - codecov
+after_success:
+  - codecov
--- a/roundup/backends/back_mysql.py	Sun Oct 13 13:37:29 2019 -0400
+++ b/roundup/backends/back_mysql.py	Sun Oct 13 13:52:44 2019 -0400
@@ -591,7 +591,6 @@
         # It looks like you can get an OperationalError 2006
         # raised for closing a closed handle.
         except MySQLdb.OperationalError as message:
-            print str(message)
             if str(message) != "(2006, '')":  # close connection
                 raise
         except MySQLdb.ProgrammingError as message:

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