mirror of https://github.com/scrapy/scrapy.git
py3 compat in test_timeoutTriggering cleanup
This commit is contained in:
parent
88f55312af
commit
30c7b4e4cc
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue