Skip to content

Commit 474eec1

Browse files
committed
Fix unittests don't start with Python 3.7
1 parent cbcdb45 commit 474eec1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cpyint

tests/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
from functools import wraps
4848
from pkgutil import walk_packages
4949

50+
try:
51+
import _mysql_connector
52+
except ImportError:
53+
pass
54+
5055
LOGGER_NAME = "myconnpy_tests"
5156
LOGGER = logging.getLogger(LOGGER_NAME)
5257
PY2 = sys.version_info[0] == 2

0 commit comments

Comments
 (0)