From 3c6dd1a46df67511955a67a3d5342cf16ab3e76d Mon Sep 17 00:00:00 2001 From: Alexandros Afentoulis Date: Fri, 20 Jul 2018 14:23:21 +0300 Subject: [PATCH] Remove ix-test-real-http.patch Said patch cannot be applied, since it refers to an older code version. Debian patch addresses an issue corrected in upstream version 1.2.0 while debian/ocata packages version 1.3.0 --- debian/patches/fix-test-real-http.patch | 30 ------------------------- debian/patches/series | 1 - 2 files changed, 31 deletions(-) delete mode 100644 debian/patches/fix-test-real-http.patch diff --git a/debian/patches/fix-test-real-http.patch b/debian/patches/fix-test-real-http.patch deleted file mode 100644 index 5378828..0000000 --- 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 0a5cff4..0a89f08 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 -- GitLab