1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/executor
Toshio Kuratomi 9f7b0dfc30 Remove automatic use of system six
* Enable the pylint no-name-in-module check.  Checks that identifiers in
  imports actually exist.  When we do this, we also have to ignore
  _MovedItems used in our bundled six.  This means pylint won't check
  for bad imports below ansible.module_utils.six.moves but that's
  something that pylint punts on with a system copy of six so this is
  still an improvement.
* Remove automatic use of system six.  The exec in the six code which
  tried to use a system library if available destroyed pylint's ability
  to check for imports of identifiers which did not exist (the
  no-name-in-module check).  That test is important enough that we
  should sacrifice the bundling detection in favour of the test.
  Distributions that want to unbundle six can replace the bundled six in
  ansible/module_utils/six/__init__.py to unbundle.  however, be aware
  that six is tricky to unbundle.  They may want to base their efforts
  off the code we were using:

  2fff690caa/lib/ansible/module_utils/six/__init__.py

* Update tests for new location of bundled six Several code-smell tests
  whitelist the bundled six library.  Update the path to the library so
  that they work.

* Also check for basestring in modules as the enabled pylint tests will
  also point out basestring usage for us.
2017-07-25 15:58:23 -07:00
..
module_common Remove automatic use of system six 2017-07-25 15:58:23 -07:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_play_iterator.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_playbook_executor.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_task_executor.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_task_queue_manager_callbacks.py Remove hack for backwards compatible v2_playbook_on_start callback 2017-04-28 13:44:43 -07:00
test_task_result.py Return code is not very useful to assume a task failed 2017-06-27 15:40:27 -04:00