diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2022-09-01 00:46:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 15:46:14 -0700 |
commit | 12097c81b940bc324dbe995bb039d87905d1e543 (patch) | |
tree | ccc93db9f704972f302155ceb6a32a2c8996ac68 | |
parent | 252c6551ff3e63a83eec45e4b78924a250b4244d (diff) | |
download | ansible-12097c81b940bc324dbe995bb039d87905d1e543.tar.gz |
Fix pytest collection during test_host partial run (#78595)
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:
https://github.com/ansible/ansible/pull/78585#issuecomment-1220885431
(cherry picked from commit beb70daf14bc14acad076b34dca39a3ca6b633bb)
-rw-r--r-- | test/units/inventory/__init__.py | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/test/units/inventory/__init__.py b/test/units/inventory/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/units/inventory/__init__.py |