summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MySQLdb/tests/test_MySQLdb_nonstandard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/MySQLdb/tests/test_MySQLdb_nonstandard.py b/MySQLdb/tests/test_MySQLdb_nonstandard.py
index b9b127e..92fcbdc 100644
--- a/MySQLdb/tests/test_MySQLdb_nonstandard.py
+++ b/MySQLdb/tests/test_MySQLdb_nonstandard.py
@@ -3,6 +3,7 @@ import unittest
import _mysql
import MySQLdb
from MySQLdb.constants import FIELD_TYPE
+from configdb import connection_factory
class TestDBAPISet(unittest.TestCase):
@@ -44,7 +45,7 @@ class CoreAPI(unittest.TestCase):
"""Test _mysql interaction internals."""
def setUp(self):
- self.conn = _mysql.connect(db='test', host='127.0.0.1', user='root')
+ self.conn = connection_factory(use_unicode=True)
def tearDown(self):
self.conn.close()