-
-
Notifications
You must be signed in to change notification settings - Fork 119
support latest urllib3 version #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I believe this fixes jazzband#75
i think fixed jazzband#75
Note that pool.py has not been necessary since urllib3==1.6 (and minimum is now 1.12, much higher than that) --> see urllib3/urllib3@9570cd2 |
cd7e2ce
to
c89882f
Compare
@seocam mind taking a look/merging? |
Sorry @aausch I'm gonna work on that next week! |
@seocam there is any prevision to review this PR? |
jazzband#77 Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
Hey @msfernandes. I've just gave you write access to the repo. Feel free to do and/or ask for modifications before merging anything. |
This patch breaks the tests. Yes, I know Travis tests pass, not sure why. Investigating. |
This change also now required: diff --git a/tests/test_transformer.py b/tests/test_transformer.py
index 3ef0bbc..1db063d 100644
--- a/tests/test_transformer.py
+++ b/tests/test_transformer.py
@@ -110,6 +110,7 @@ class TransformerTest(TestCase):
test_file = MockFile(FILE_CONTENT, 4)
mock_file = MagicMock()
type(mock_file).encoding = PropertyMock(return_value='utf-8')
+ type(mock_file).isclosed = MagicMock(side_effect=test_file.closed)
type(mock_file).closed = PropertyMock(side_effect=test_file.closed)
mock_file.read.side_effect = test_file.read
mock_file.close.side_effect = test_file.close
@@ -137,6 +138,7 @@ class TransformerTest(TestCase):
mock_file = MagicMock()
type(mock_file).encoding = PropertyMock(return_value='utf-8')
+ type(mock_file).isclosed = MagicMock(side_effect=test_file.closed)
type(mock_file).closed = PropertyMock(side_effect=test_file.closed)
mock_file.read.side_effect = test_file.read
mock_file.close.side_effect = test_file.close The problem is |
Fixed in #88. |
I believe this fixes #75
Note that pool.py has not been necessary since urllib3==1.6 (and minimum is now 1.12, much higher than that) --> see urllib3/urllib3@9570cd2