diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
commit | e748ba9741f6540f4675c23e3e37b73e822c13a4 (patch) | |
tree | 23dece8beabb3a3d7c6c0273b0eb40b21c62a889 /dev-python/pytest-localserver/files | |
parent | 908778078736bd36f7a60a2d576d415cb8e000fa (diff) |
gentoo resync : 31.05.2021
Diffstat (limited to 'dev-python/pytest-localserver/files')
-rw-r--r-- | dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch | 39 | ||||
-rw-r--r-- | dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch | 5 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch new file mode 100644 index 000000000000..c9a8fbf0f870 --- /dev/null +++ b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-py310-tests.patch @@ -0,0 +1,39 @@ +--- a/tests/test_https.py 2021-05-24 12:10:07.335676451 -0700 ++++ b/tests/test_https.py 2021-05-24 12:10:23.966572498 -0700 +@@ -11,17 +11,20 @@ + httpsserver = plugin.httpsserver + + ++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310") + def test_httpsserver_funcarg(httpsserver): + assert isinstance(httpsserver, https.SecureContentServer) + assert httpsserver.is_alive() + assert httpsserver.server_address + + ++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310") + def test_server_does_not_serve_file_at_startup(httpsserver): + assert httpsserver.code == 204 + assert httpsserver.content == '' + + ++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310") + def test_some_content_retrieval(httpsserver): + httpsserver.serve_content('TEST!') + resp = requests.get(httpsserver.url, verify=False) +@@ -29,6 +32,7 @@ + assert resp.status_code == 200 + + ++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310") + def test_GET_request(httpsserver): + httpsserver.serve_content('TEST!', headers={'Content-type': 'text/plain'}) + resp = requests.get(httpsserver.url, headers={'User-Agent': 'Test method'}, verify=False) +@@ -37,6 +41,7 @@ + assert 'text/plain' in resp.headers['Content-type'] + + ++@pytest.mark.skipif(sys.hexversion >= 0x30a0000, reason="Example certs too weak for py310") + def test_HEAD_request(httpsserver): + httpsserver.serve_content('TEST!', headers={'Content-type': 'text/plain'}) + print(httpsserver.url) diff --git a/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch new file mode 100644 index 000000000000..1cad7643973a --- /dev/null +++ b/dev-python/pytest-localserver/files/pytest-localserver-0.5.0-setup.patch @@ -0,0 +1,5 @@ +--- a/setup.cfg 2021-05-24 12:19:38.163108453 -0700 ++++ b/setup.cfg 2021-05-24 12:19:58.714979990 -0700 +@@ -2 +2 @@ +-description-file = README ++description_file = README |