mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Remove the dictionary comprehension from the tests
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
@@ -2939,8 +2939,10 @@ class TestGetConnection(object):
|
||||
adapter = requests.adapters.HTTPAdapter()
|
||||
connection = adapter.get_connection(
|
||||
'https://example.com', proxies=proxies, verify=verify, cert=cert)
|
||||
actual_config = {key: value for key, value in connection.__dict__.items()
|
||||
if key in expected}
|
||||
actual_config = {}
|
||||
for key, value in connection.__dict__.items():
|
||||
if key in expected:
|
||||
actual_config[key] = value
|
||||
assert actual_config == expected
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
Reference in New Issue
Block a user