Remove the dictionary comprehension from the tests

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
Jeremy Cline
2017-06-27 09:29:01 -04:00
parent f58d473d4e
commit 66f5aebd35
+4 -2
View File
@@ -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(