Skip to content

Commit ce5b352

Browse files
committed
Fix mysqlx connection and style tests
1 parent 6ac37eb commit ce5b352

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/mysqlx/statement.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@
2323

2424
"""Implementation of Statements."""
2525

26-
import copy
2726
import json
28-
import re
2927

3028
from .errors import ProgrammingError
3129
from .expr import ExprParser
3230
from .compat import STRING_TYPES
3331
from .dbdoc import DbDoc
34-
from .result import SqlResult, Result, ColumnType
32+
from .result import SqlResult, Result
3533
from .protobuf import mysqlxpb_enum
3634

3735

tests/test_mysqlx_connection.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
else:
3939
from urllib import quote_plus
4040

41+
from .test_mysqlx_crud import drop_table
42+
43+
4144
LOGGER = logging.getLogger(tests.LOGGER_NAME)
4245

4346
_URI_TEST_RESULTS = ( # (uri, result)
@@ -420,7 +423,7 @@ def test_rollback(self):
420423
self.session.rollback()
421424
self.assertEqual(table.count(), 0)
422425

423-
schema.drop_table(table_name)
426+
drop_table(schema, table_name)
424427

425428
def test_commit(self):
426429
table_name = "t2"
@@ -441,7 +444,7 @@ def test_commit(self):
441444
self.session.commit()
442445
self.assertEqual(table.count(), 1)
443446

444-
schema.drop_table(table_name)
447+
drop_table(schema, table_name)
445448

446449
def test_close(self):
447450
session = mysqlx.get_session(self.connect_kwargs)

0 commit comments

Comments
 (0)