[Python-modules-commits] [python-tornado] 01/05: Fix testsuite failure when sockets is not defined
Gianfranco Costamagna
locutusofborg at moszumanska.debian.org
Tue May 24 11:00:47 UTC 2016
This is an automated email from the git hooks/post-receive script.
locutusofborg pushed a commit to branch master
in repository python-tornado.
commit df1105b186eccf103277d0ccddd4c88e9f9d3c08
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Tue May 24 12:29:51 2016 +0200
Fix testsuite failure when sockets is not defined
this fixes the UnboundLocalError issue
"UnboundLocalError: local variable 'sockets' referenced before assignment"
Thanks Ondřej Nový for the help
---
tornado/test/netutil_test.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tornado/test/netutil_test.py b/tornado/test/netutil_test.py
index 78331ce..79f35c0 100644
--- a/tornado/test/netutil_test.py
+++ b/tornado/test/netutil_test.py
@@ -203,6 +203,7 @@ class TestPortAllocation(unittest.TestCase):
@unittest.skipIf(not hasattr(socket, "SO_REUSEPORT"), "SO_REUSEPORT is not supported")
def test_reuse_port(self):
+ sockets = []
socket, port = bind_unused_port(reuse_port=True)
try:
sockets = bind_sockets(port, 'localhost', reuse_port=True)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tornado.git
More information about the Python-modules-commits
mailing list