py3 compat in test_timeoutTriggering cleanup

This commit is contained in:
Konstantin Lopuhin 2016-01-14 13:44:14 +03:00
parent 88f55312af
commit 30c7b4e4cc
1 changed files with 1 additions and 1 deletions

View File

@ -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: