diff options
author | Sergey Shepelev <temotor@gmail.com> | 2021-10-12 11:48:58 +0300 |
---|---|---|
committer | Sergey Shepelev <temotor@gmail.com> | 2021-10-12 11:48:58 +0300 |
commit | decc957bce1aa31ac9ce9995cc772618d2040411 (patch) | |
tree | 626b09c07fd1853b8ef5b72967b7704cd00a25b6 | |
parent | 15d3c2477510229e1b49c60fccfde5ffe94b2a76 (diff) | |
download | eventlet-371-forgot-run-test.tar.gz |
tests: forgot to run isolated for de06878e5a295bfbbddca0048c3453d16168a676371-forgot-run-test
https://github.com/eventlet/eventlet/issues/371
-rw-r--r-- | tests/isolated/ssl_context_properties.py (renamed from tests/isolated/green_ssl_py36_properties.py) | 10 | ||||
-rw-r--r-- | tests/ssl_test.py | 15 |
2 files changed, 17 insertions, 8 deletions
diff --git a/tests/isolated/green_ssl_py36_properties.py b/tests/isolated/ssl_context_properties.py index aa6b5b5..f28155e 100644 --- a/tests/isolated/green_ssl_py36_properties.py +++ b/tests/isolated/ssl_context_properties.py @@ -1,16 +1,16 @@ __test__ = False -if __name__ == '__main__': +if __name__ == "__main__": import eventlet eventlet.monkey_patch() try: eventlet.wrap_ssl( - eventlet.listen(('localhost', 0)), - certfile='does-not-exist', - keyfile='does-not-exist', + eventlet.listen(("localhost", 0)), + certfile="does-not-exist", + keyfile="does-not-exist", server_side=True) except IOError as ex: assert ex.errno == 2 - print('pass') + print("pass") diff --git a/tests/ssl_test.py b/tests/ssl_test.py index ebaead2..38ebe9a 100644 --- a/tests/ssl_test.py +++ b/tests/ssl_test.py @@ -396,6 +396,15 @@ class SSLTest(tests.LimitedTestCase): client.recv(64) server_coro.wait() - @tests.skip_if(sys.version_info < (3, 7)) - def test_context_version_setters(self): - tests.run_isolated("ssl_context_version_setters.py") + +@tests.skip_if(sys.version_info < (3, 7)) +def test_context_version_setters(): + tests.run_isolated("ssl_context_version_setters.py") + + +def test_context_properties(): + # https://github.com/eventlet/eventlet/issues/371 + context = ssl.create_default_context() + context.options |= context.options + + tests.run_isolated("ssl_context_properties.py") |