Add python-eventlet 0.16.1
[packages/trusty/python-eventlet.git] / eventlet / tests / mysqldb_test_monkey_patch.py
1 from __future__ import print_function
2 from eventlet import patcher
3
4 # no standard tests in this file, ignore
5 __test__ = False
6
7 if __name__ == '__main__':
8     import MySQLdb as m
9     from eventlet.green import MySQLdb as gm
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))