Skip to content
Myr

Merge pull request #1006 from passy/test-py3k-fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Use range in favor of xrange for py3k test compatibility

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 3aefb8e, a98ec71 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • tests:+1 added−1 removed

1 file+1 added−1 removed

modified:tests/test_keep_alive.py+1 added-1 removed
44 unmodified lines
45 def make_proxy_requests(self):46 self.make_requests(self.proxies)4748 def make_requests(self, proxies=None):49 for _ in xrange(self.request_count):49 for _ in range(self.request_count):50 self.session.get(self.url, proxies=proxies).text5152 def check_each_request_are_in_same_connection(self):53 """Keep-alive requests open a single connection to the server."""
12 unmodified lines