Skip to content

Commit 3142ed4

Browse files
committed
issue2551025: try handling operational error exception in close #3
Got something that worked last time. Remove debugging print statement. return travis config to normal.
1 parent 94ada3b commit 3142ed4

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.travis.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ language: python
22

33
python:
44
- 2.7
5-
#test# - 3.4
6-
#test# - 3.5
7-
#test# - 3.6
8-
#test# - 3.7
9-
#test# - nightly
5+
- 3.4
6+
- 3.5
7+
- 3.6
8+
- 3.7
9+
- nightly
1010

1111
#I would like to build and test the maint-1.6 and trunk/default
1212
#but we need different environments for these:
@@ -84,7 +84,6 @@ before_install:
8484
- cd $TRAVIS_BUILD_DIR
8585

8686
install:
87-
#test# - pip install mysqlclient==1.3.13
8887
- pip install mysqlclient
8988
- pip install psycopg2
9089
- pip install gpg pytz whoosh pyjwt
@@ -108,9 +107,8 @@ before_script:
108107
script:
109108
- PATH=$VIRTUAL_ENV/bin:$PATH
110109
- export LD_LIBRARY_PATH=$VIRTUAL_ENV/lib:$LD_LIBRARY_PATH
111-
- py.test -v test/test_mysql.py
112-
#test# - py.test -v test/ --cov=roundup
110+
- py.test -v test/ --cov=roundup
113111

114112

115-
#test#after_success:
116-
#test# - codecov
113+
after_success:
114+
- codecov

roundup/backends/back_mysql.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ def sql_close(self):
591591
# It looks like you can get an OperationalError 2006
592592
# raised for closing a closed handle.
593593
except MySQLdb.OperationalError as message:
594-
print str(message)
595594
if str(message) != "(2006, '')": # close connection
596595
raise
597596
except MySQLdb.ProgrammingError as message:

0 commit comments

Comments
 (0)