diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2021-03-24 15:20:38 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2021-03-24 15:20:38 -0700 |
commit | e69335fd8a25ba14e32aa8c9722ad31607156e41 (patch) | |
tree | 8a4fc18aef80e4fef44f3d8a60133a63e144b737 /dev-python/pycurl-requests | |
parent | mail-filter/spamassassin: Bump to 3.4.5 (diff) | |
download | gentoo-e69335fd8a25ba14e32aa8c9722ad31607156e41.tar.gz gentoo-e69335fd8a25ba14e32aa8c9722ad31607156e41.tar.bz2 gentoo-e69335fd8a25ba14e32aa8c9722ad31607156e41.zip |
dev-python/pycurl-requests: Fix tests (bug #777951)
Closes: https://bugs.gentoo.org/777951
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-python/pycurl-requests')
-rw-r--r-- | dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch b/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch index 47869defd5ea..2bed5e3c93c2 100644 --- a/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch +++ b/dev-python/pycurl-requests/files/pycurl-requests-0.2.0-test.patch @@ -1,3 +1,16 @@ +diff --git a/pycurl_requests/tests/test_exceptions.py b/pycurl_requests/tests/test_exceptions.py +index 2415ba8..6960615 100644 +--- a/pycurl_requests/tests/test_exceptions.py ++++ b/pycurl_requests/tests/test_exceptions.py +@@ -32,7 +32,7 @@ def test_connecterror_resolve(): + if IS_PYCURL_REQUESTS: + assert isinstance(exception.__cause__, pycurl.error) + assert exception.curl_code == pycurl.E_COULDNT_RESOLVE_HOST +- assert 'Could not resolve host' in exception.curl_message ++ assert 't resolve host' in exception.curl_message + + + def test_toomanyredirects(http_server): diff --git a/pycurl_requests/tests/test_requests.py b/pycurl_requests/tests/test_requests.py index 7d2c627..850d530 100644 --- a/pycurl_requests/tests/test_requests.py |