diff options
author | Matt Clay <mclay@redhat.com> | 2020-02-04 11:21:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 11:21:53 -0800 |
commit | f4a80bb600510669801c5d5c0a250952748e99fd (patch) | |
tree | 83ce363b557a66453a9f2c9d0b84c589e09fc57a /test/lib/ansible_test/_internal/provider/layout/collection.py | |
parent | 994a6b0c5a7929051e5e2101004ef536ec47c0b3 (diff) | |
download | ansible-f4a80bb600510669801c5d5c0a250952748e99fd.tar.gz |
Code cleanup and refactoring in ansible-test. (#67063)
* Code cleanup in ansible-test.
* Split out encoding functions.
* Consoldate loading of JSON files.
* Split out disk IO functions.
* Simplify file access.
* Add functions for opening files.
* Replace open calls with appropriate functions.
* Expose more types from typing module.
* Support writing compact JSON.
* Add verbosity argument to display.warning.
* Add changelog entry.
* Update files overlooked during rebase.
* Use `io.open` instead of `open`.
* Fix file opening for imp.load_module.
* Remove use of `r+` mode to access files.
* Add missing import.
* Fix httptester on Python 2.x.
* Clarify changelog fragment.
* Consolidate imports. Remove extra newlines.
* Fix indirect imports.
Diffstat (limited to 'test/lib/ansible_test/_internal/provider/layout/collection.py')
-rw-r--r-- | test/lib/ansible_test/_internal/provider/layout/collection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/provider/layout/collection.py b/test/lib/ansible_test/_internal/provider/layout/collection.py index 7740b99644..ffad29f259 100644 --- a/test/lib/ansible_test/_internal/provider/layout/collection.py +++ b/test/lib/ansible_test/_internal/provider/layout/collection.py @@ -33,7 +33,7 @@ class CollectionLayout(LayoutProvider): collection_root = os.path.dirname(os.path.dirname(root)) collection_dir = os.path.relpath(root, collection_root) - collection_namespace, collection_name = collection_dir.split(os.sep) + collection_namespace, collection_name = collection_dir.split(os.path.sep) collection_root = os.path.dirname(collection_root) |