Skip to content

Commit

Permalink
Fix pytest collection during test_host partial run
Browse files Browse the repository at this point in the history
Sometimes pytest errors out with an `ImportError` during its tests
collection stage when a Python package/directory containing the test
module does not have an `__init__.py` in it. This is being observed
under Python 3.9 and higher.

The patch provides a workaround for this problem but does not address
the root cause which is currently unknown.

Ref:
ansible#78585 (comment)
(cherry picked from commit beb70da)
  • Loading branch information
webknjaz committed Aug 19, 2022
1 parent 670d861 commit bc12bcd
Showing 1 changed file with 0 additions and 0 deletions.
Empty file.

0 comments on commit bc12bcd

Please sign in to comment.