Removed Port global variable.

Change-Id: I89c45823a2c7fe0185f2e5aacca8cc4174166f72
This commit is contained in:
Fabio Verboso 2020-01-27 18:17:55 +01:00
parent 979eb700d0
commit 59cb7cdda3
2 changed files with 3 additions and 4 deletions

View File

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

View File

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