Add python-eventlet package to MOS 9.0 repository
[packages/trusty/python-eventlet.git] / tests / mysqldb_test_monkey_patch.py
1 from __future__ import print_function
2 import MySQLdb as m
3 from eventlet import patcher
4 from eventlet.green import MySQLdb as gm
5
6 # no standard tests in this file, ignore
7 __test__ = False
8
9 if __name__ == '__main__':
10     patcher.monkey_patch(all=True, MySQLdb=True)
11     print("mysqltest {0}".format(",".join(sorted(patcher.already_patched.keys()))))
12     print("connect {0}".format(m.connect == gm.connect))