Skip to content

Commit

Permalink
[misc] test stability improvement for mysql server
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Dec 14, 2023
1 parent ba6b6e9 commit 76a7661
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -10,7 +10,7 @@ before_install:
- export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
# install c dependency
- |-
if [ "$TRAVIS_OS_NAME" != "osx" ] ; then
if [ "$TRAVIS_OS_NAME" == "linux" ] ; then
sudo apt-get install software-properties-common
sudo apt-get install -f libssl-dev libssl1.1
sudo apt-get install -f
Expand Down
5 changes: 3 additions & 2 deletions testing/test/integration/test_cursor.py
Expand Up @@ -1348,7 +1348,7 @@ def test_conpy178(self):
for i in range(0, 500):
cursor.callproc("p2", ("foo", "bar", 1))
row = cursor.fetchone()
self.assertEqual(row[0], "foobar")
self.assertEqual(row[0], (b"foobar","foobar")[is_mysql()])

conn.close()

Expand Down Expand Up @@ -1523,7 +1523,8 @@ def test_conpy225(self):

cursor.executemany("INSERT INTO x01 VALUES (?,?)", params)
self.assertEqual(cursor.rowcount, 4)
self.assertEqual(cursor.affected_rows, 4)
if (not is_mysql()):
self.assertEqual(cursor.affected_rows, 4)

cursor.execute("UPDATE x01 SET a=1 WHERE a=1")
self.assertEqual(cursor.rowcount, 0)
Expand Down

0 comments on commit 76a7661

Please sign in to comment.