diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/isolated/patcher_python3_http_client_regression.py | 6 | ||||
| -rw-r--r-- | tests/patcher_test.py | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/isolated/patcher_python3_http_client_regression.py b/tests/isolated/patcher_python3_http_client_regression.py new file mode 100644 index 0000000..ec416ad --- /dev/null +++ b/tests/isolated/patcher_python3_http_client_regression.py @@ -0,0 +1,6 @@ +if __name__ == '__main__': + import http.client + original_id = id(http.client) + import eventlet.green.http.client # noqa + assert id(http.client) == original_id + print('pass') diff --git a/tests/patcher_test.py b/tests/patcher_test.py index 5aae0ac..a3a3cd5 100644 --- a/tests/patcher_test.py +++ b/tests/patcher_test.py @@ -528,3 +528,8 @@ def test_socketserver_selectors(): def test_blocking_select_methods_are_deleted(): tests.run_isolated('patcher_blocking_select_methods_are_deleted.py') + + +if six.PY3: + def test_http_client_regression(): + tests.run_isolated('patcher_python3_http_client_regression.py') |
