diff options
| author | Jakub Stasiak <jakub@stasiak.at> | 2016-06-14 20:43:40 +0200 |
|---|---|---|
| committer | Jakub Stasiak <jakub.stasiak@smarkets.com> | 2016-06-14 21:07:19 +0200 |
| commit | 60b4b298fdcb92ac69e8986b0551303fed189b23 (patch) | |
| tree | 0841b52b33cc635ca3ce40ac63ea3f1aff23113a /tests | |
| parent | 41bbe278d6ab1eaf52e4d7af3a01a4053fc6e2b1 (diff) | |
| download | eventlet-test-http-client-regression.tar.gz | |
regressiontest-http-client-regression
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') |
