Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Merge from master (June 6th, 2019) #119

Merged

Conversation

pquentin
Copy link
Member

This removes the addCleanup() calls. This is the only remaining big change, the next one is simply to drop unittest altogether.

RatanShreshtha and others added 2 commits June 19, 2019 08:11
…om-master-2019-06-19

Technically this is not a merge, because I redid everything myself.
When I had doubt, I did look at the original commit, and followed what
it did. Except for one thing: I always remove empty lines after the
added `with` statement. I would like to do the same thing upstream to
make future merges easier.
Copy link
Member

@RatanShreshtha RatanShreshtha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest all looks good to me

@@ -22,343 +22,332 @@ def setUp(self):
self.proxy_url = "http://%s:%d" % (self.proxy_host, self.proxy_port)

def test_basic_proxy(self):
http = proxy_from_url(self.proxy_url, ca_certs=DEFAULT_CA)
self.addCleanup(http.clear)
with proxy_from_url(self.proxy_url, ca_certs=DEFAULT_CA) as http:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change proxy_from_url to just ProxyManager calls ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but not as part of this PR (because yours did not that either, probaby because it would have been a breaking change). I added it to my list in #114 so I won't forget it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I think it's ready to to be merged.

@RatanShreshtha RatanShreshtha merged commit bc3f5b4 into python-trio:bleach-spike Aug 26, 2019
@pquentin pquentin deleted the merge-from-master-2019-06-19 branch September 23, 2019 05:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants