Increase python version coverage for tests. (#24762)

* Improve ansible-test inventory handling.
* Fix python 3 re-raise of exception from thread.
* Fix python 3 encoding for windows-integration.
* Run network tests on multiple python versions.
* Run windows tests on multiple python versions.
* Support Shippable delegation using --tox.
* Skip vyos_command on python 3 tests until fixed.
* Add python 3 filtering to local and tox.
* Fix tests to support back to back runs.
* Temporarily test networking with python 2.7 only.

Running the tests back to back causes intermittent test failures
which need to be addressed before we can test multiple versions
in a single test run.
This commit is contained in:
Matt Clay 2017-05-19 01:37:53 +08:00 committed by GitHub
parent c99c3b2b5d
commit 5babe2daea
13 changed files with 140 additions and 51 deletions

View file

@ -43,7 +43,7 @@ class WrappedThread(threading.Thread):
result, exception = self._result.get()
if exception:
if sys.version_info[0] > 2:
raise exception[0](exception[1]).with_traceback(exception[2])
raise exception[1].with_traceback(exception[2])
# noinspection PyRedundantParentheses
exec('raise exception[0], exception[1], exception[2]') # pylint: disable=locally-disabled, exec-used
return result