From eaa006464cb98a2f36809edfa13bd3dcaebc9952 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Mon, 17 Aug 2015 22:13:42 -0700 Subject: [PATCH] move global statement up a few lines Change-Id: I190d2d530c6c0525d988cc88b0965b48a291fffb --- test/unit/proxy/test_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/proxy/test_server.py b/test/unit/proxy/test_server.py index 153e45c0c0..26903d0a92 100644 --- a/test/unit/proxy/test_server.py +++ b/test/unit/proxy/test_server.py @@ -8523,6 +8523,7 @@ class TestSwiftInfo(unittest.TestCase): class TestSocketObjectVersions(unittest.TestCase): def setUp(self): + global _test_sockets self.prolis = prolis = listen(('localhost', 0)) self._orig_prolis = _test_sockets[0] allowed_headers = ', '.join([ @@ -8541,7 +8542,6 @@ class TestSocketObjectVersions(unittest.TestCase): self.coro = spawn(wsgi.server, prolis, prosrv, NullLogger()) # replace global prosrv with one that's filtered with version # middleware - global _test_sockets self.sockets = list(_test_sockets) self.sockets[0] = prolis _test_sockets = tuple(self.sockets)