From 59cb7cdda3ba2af71c5cecc2c71de9b8a260b422 Mon Sep 17 00:00:00 2001 From: Fabio Verboso Date: Mon, 27 Jan 2020 18:17:55 +0100 Subject: [PATCH] Removed Port global variable. Change-Id: I89c45823a2c7fe0185f2e5aacca8cc4174166f72 --- iotronic/conductor/endpoints.py | 1 - tox.ini | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/iotronic/conductor/endpoints.py b/iotronic/conductor/endpoints.py index 9551265..ffff503 100644 --- a/iotronic/conductor/endpoints.py +++ b/iotronic/conductor/endpoints.py @@ -562,7 +562,6 @@ class ConductorEndpoint(object): port_socat = random.randint(10000, 20000) i += 1 - global Port Port.insert(0, port_socat) r_tcp_port = str(port_socat) diff --git a/tox.ini b/tox.ini index 99020df..c77a23a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.3.1 -envlist = py35,pep8 +envlist = py3,pep8 skipsdist = True [testenv] @@ -22,8 +22,8 @@ commands = basepython = python2.7 commands = flake8 {posargs} -[testenv:py35] -basepython = python3.5 +[testenv:py3] +basepython = python3 [flake8]