diff --git a/tests/test_webclient.py b/tests/test_webclient.py index 0a31d8b5d..fa0083d44 100644 --- a/tests/test_webclient.py +++ b/tests/test_webclient.py @@ -300,7 +300,7 @@ class WebClientTestCase(unittest.TestCase): def cleanup(passthrough): # Clean up the server which is hanging around not doing # anything. - connected = self.wrapper.protocols.keys() + connected = list(six.iterkeys(self.wrapper.protocols)) # There might be nothing here if the server managed to already see # that the connection was lost. if connected: