Skip to content

Commit 36a9c72

Browse files
committed
Fix default allow local infile test
1 parent 4ffd12f commit 36a9c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ def test_default_allow_local_infile(self):
17871787
data_file = os.path.join("tests", "data", "local_data.csv")
17881788
cur = self.cnx.cursor()
17891789
sql = "LOAD DATA LOCAL INFILE %s INTO TABLE local_data"
1790-
self.assertRaises(errors.ProgrammingError,
1790+
self.assertRaises((errors.DatabaseError, errors.ProgrammingError),
17911791
cur.execute, sql, (data_file,))
17921792
cur.execute("DROP TABLE IF EXISTS local_data")
17931793
cur.close()

0 commit comments

Comments
 (0)