summaryrefslogtreecommitdiff
path: root/tests/mysqldb_test_monkey_patch.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mysqldb_test_monkey_patch.py')
-rw-r--r--tests/mysqldb_test_monkey_patch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mysqldb_test_monkey_patch.py b/tests/mysqldb_test_monkey_patch.py
index a76178e..66e15de 100644
--- a/tests/mysqldb_test_monkey_patch.py
+++ b/tests/mysqldb_test_monkey_patch.py
@@ -1,12 +1,13 @@
from __future__ import print_function
-from eventlet import patcher
# no standard tests in this file, ignore
__test__ = False
if __name__ == '__main__':
import MySQLdb as m
+ from eventlet import patcher
from eventlet.green import MySQLdb as gm
+
patcher.monkey_patch(all=True, MySQLdb=True)
print("mysqltest {0}".format(",".join(sorted(patcher.already_patched.keys()))))
print("connect {0}".format(m.connect == gm.connect))