diff --git a/debian/patches/fix-test-real-http.patch b/debian/patches/fix-test-real-http.patch deleted file mode 100644 index 5378828e69fd7eea63d1f03cca3d4430296266bd..0000000000000000000000000000000000000000 --- a/debian/patches/fix-test-real-http.patch +++ /dev/null @@ -1,30 +0,0 @@ -Description: Remove obsolete hack for requests 1.2.3 - Upstream requests-mock 1.2.0 corrected this issue already. -Forwarded: not-needed -Author: Ondřej Kobližek - ---- a/requests_mock/tests/test_mocker.py -+++ b/requests_mock/tests/test_mocker.py -@@ -14,7 +14,6 @@ - import requests - - import requests_mock --from requests_mock import compat - from requests_mock.tests import base - - original_send = requests.Session.send -@@ -56,14 +55,8 @@ - def test_real_http(self, real_send, mocker): - url = 'http://www.google.com/' - -- # NOTE(jamielennox): hack for requests 1.2.3 remove after -- # requirements catches up. -- class FakeHTTPResponse(object): -- _original_response = compat._fake_http_response -- - real_send.return_value = requests.Response() - real_send.return_value.status_code = 200 -- real_send.return_value.raw = FakeHTTPResponse() - requests.get(url) - - self.assertEqual(1, real_send.call_count) diff --git a/debian/patches/series b/debian/patches/series index 0a5cff42c45dd1cc80335f7d3eeadfebe4d0cc4c..0a89f083d37787c8a3edbb08fb3d881c87e0c75d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,2 @@ no-intersphinx.patch removed-privacy-breach-in-docs.patch -fix-test-real-http.patch