Update the way we make a module be tested for py3 syntax compliance
This commit is contained in:
parent
9c13c7b139
commit
8789cfb514
1 changed files with 11 additions and 8 deletions
|
@ -145,12 +145,15 @@ ported a module so that its syntax works with Python-3, we need to modify
|
||||||
.travis.yml so that the module is included in the syntax check. Here's the
|
.travis.yml so that the module is included in the syntax check. Here's the
|
||||||
relevant section of .travis.yml::
|
relevant section of .travis.yml::
|
||||||
|
|
||||||
script:
|
env:
|
||||||
[...]
|
global:
|
||||||
- python3.4 -m compileall -fq system/ping.py
|
- PY3_EXCLUDE_LIST="cloud/amazon/cloudformation.py
|
||||||
- python3.5 -m compileall -fq system/ping.py
|
cloud/amazon/ec2_ami.py
|
||||||
|
[...]
|
||||||
|
utilities/logic/wait_for.py"
|
||||||
|
|
||||||
At the moment this is a whitelist. Just add your newly ported module to that
|
The :envvar:`PY3_EXCLUDE_LIST` environment variable is a blacklist of modules
|
||||||
line. Eventually, not compiling on Python-3 will be the exception. When that
|
which should not be tested (because we know that they are older modules which
|
||||||
occurs, we will move to a blacklist for listing which modules do not compile
|
have not yet been ported to pass the Python-3 syntax checks. To get another
|
||||||
under Python-3.
|
old module to compile with Python-3, remove the entry for it from the list.
|
||||||
|
The goal is to have the LIST be empty.
|
||||||
|
|
Loading…
Reference in a new issue