From 207e36194dc914c9725a0969081d317c1e491218 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 27 Sep 2020 12:36:34 -0700 Subject: [PATCH] try and get some visibility into test failures --- .ci/localhost_ansible_tests.py | 2 +- mitogen/master.py | 3 --- tests/ansible/run_ansible_playbook.py | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.ci/localhost_ansible_tests.py b/.ci/localhost_ansible_tests.py index e19e70ca..9334ebc9 100755 --- a/.ci/localhost_ansible_tests.py +++ b/.ci/localhost_ansible_tests.py @@ -46,5 +46,5 @@ with ci_lib.Fold('machine_prep'): with ci_lib.Fold('ansible'): os.chdir(TESTS_DIR) playbook = os.environ.get('PLAYBOOK', 'all.yml') - run('./run_ansible_playbook.py %s -l target %s', + run('./run_ansible_playbook.py %s -l target %s -vvv', playbook, ' '.join(sys.argv[1:])) diff --git a/mitogen/master.py b/mitogen/master.py index c5eee826..fd0c4201 100644 --- a/mitogen/master.py +++ b/mitogen/master.py @@ -559,9 +559,6 @@ class SysModulesMethod(FinderMethod): """ Find `fullname` using its :data:`__file__` attribute. """ - # see if collections are being loaded in sys.path here - if 'synchronize' in fullname: - raise ValueError(sys.path) module = sys.modules.get(fullname) if not isinstance(module, types.ModuleType): LOG.debug('%r: sys.modules[%r] absent or not a regular module', diff --git a/tests/ansible/run_ansible_playbook.py b/tests/ansible/run_ansible_playbook.py index 5a5a313f..b2b619d2 100755 --- a/tests/ansible/run_ansible_playbook.py +++ b/tests/ansible/run_ansible_playbook.py @@ -56,8 +56,4 @@ else: args += ['-e', json.dumps(extra)] args += sys.argv[1:] -# get visibility into what's being ran -print('*' * 80) -print(args) -print('*' * 80) os.execvp(args[0], args)