Blame SOURCES/fix_http_test.patch
|
|
c4ecdf |
diff -up jurko-suds-94664ddd46a6/tests/test_transport_http.py.httptestfix jurko-suds-94664ddd46a6/tests/test_transport_http.py
|
|
|
c4ecdf |
--- jurko-suds-94664ddd46a6/tests/test_transport_http.py.httptestfix 2015-07-27 05:08:20.000000000 -0400
|
|
|
c4ecdf |
+++ jurko-suds-94664ddd46a6/tests/test_transport_http.py 2016-01-09 23:29:22.749940293 -0500
|
|
|
c4ecdf |
@@ -120,6 +120,9 @@ class MockFP:
|
|
|
c4ecdf |
def readline():
|
|
|
c4ecdf |
raise MustNotBeCalled
|
|
|
c4ecdf |
|
|
|
c4ecdf |
+ def close(self):
|
|
|
c4ecdf |
+ pass
|
|
|
c4ecdf |
+
|
|
|
c4ecdf |
|
|
|
c4ecdf |
class MockURLOpenerSaboteur:
|
|
|
c4ecdf |
"""
|
|
|
c4ecdf |
@@ -295,12 +298,18 @@ def test_sending_using_network_sockets(s
|
|
|
c4ecdf |
self.__mocker.mock_sent_data += data
|
|
|
c4ecdf |
def settimeout(self, *args, **kwargs):
|
|
|
c4ecdf |
pass
|
|
|
c4ecdf |
+ def setsockopt(self, level, optname, value):
|
|
|
c4ecdf |
+ pass
|
|
|
c4ecdf |
|
|
|
c4ecdf |
class MockSocketReader(CountedMock):
|
|
|
c4ecdf |
def __init__(self):
|
|
|
c4ecdf |
super(MockSocketReader, self).__init__()
|
|
|
c4ecdf |
def readline(self, *args, **kwargs):
|
|
|
c4ecdf |
raise MyException
|
|
|
c4ecdf |
+ def close(self):
|
|
|
c4ecdf |
+ pass
|
|
|
c4ecdf |
+ def flush(self):
|
|
|
c4ecdf |
+ pass
|
|
|
c4ecdf |
|
|
|
c4ecdf |
# Setup.
|
|
|
c4ecdf |
host = "an-easily-recognizable-host-name-214894932"
|