mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user