diff --git a/python-httpretty.spec b/python-httpretty.spec index 033060644c88baaa40d46478661f75447be9d8c8..f071d4dbbcf9ae5b8e5c30462268d04158536e0f 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -1,10 +1,12 @@ Name: python-httpretty Version: 1.1.4 -Release: 1 +Release: 2 Summary: HTTP Client mocking tool for Python License: MIT URL: https://pypi.org/project/httpretty/ Source0: https://files.pythonhosted.org/packages/source/h/httpretty/httpretty-%{version}.tar.gz +# https://github.com/gabrielfalcao/HTTPretty/issues/457 +Patch0: test_handle_slashes.patch BuildArch: noarch @@ -47,6 +49,9 @@ LANG=en_US.UTF-8 %{__python3} -m nose2 -v %{python3_sitelib}/httpretty-%{version}-py%{python3_version}.egg-info %changelog +* Sat Aug 27 2022 wulei - 1.1.4-2 +- Fix check failure + * Sat Apr 2 2022 caodongxia - 1.1.4-1 - Update to 1.1.4 diff --git a/test_handle_slashes.patch b/test_handle_slashes.patch new file mode 100644 index 0000000000000000000000000000000000000000..ca90ef366463364030ea18faffea50cb321b14ed --- /dev/null +++ b/test_handle_slashes.patch @@ -0,0 +1,9 @@ +diff -Nur a/tests/functional/test_requests.py b/tests/functional/test_requests.py +--- a/tests/functional/test_requests.py 2021-05-14 09:02:06.000000000 +0800 ++++ b/tests/functional/test_requests.py 2022-08-27 15:44:21.935602830 +0800 +@@ -946,4 +946,4 @@ + response = requests.get('http://example.com//foo') + expect(response.text).to.equal('Find the best foo') + expect(HTTPretty.last_request.method).to.equal('GET') +- expect(HTTPretty.last_request.path).to.equal('//foo') ++ expect(HTTPretty.last_request.path).to.equal('/foo')