Skip to content

Commit

Permalink
Update runner warning (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
cidrblock committed Jul 15, 2022
1 parent 7b35fde commit c54bf9c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/unit/test_circular_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,13 @@ def test_no_warnings(import_path: str) -> None:
sys.executable,
"-W",
"error",
# NOTE: This exclusion is only necessary because ansible-runner still uses `distutils`
# NOTE: but this project already aims to target Python 3.10 as well.
# NOTE: This exclusion is only necessary because ansible-runner still uses `pipes`
# NOTE: but this project already aims to target Python 3.11 as well.
# TODO: Remove this exclusion once the runner issue is addressed.
# Ref: https://github.com/ansible/ansible-runner/issues/969
# https://github.com/ansible/ansible-runner/issues/1101
"-W",
"ignore:The distutils package is deprecated and slated for removal in Python 3.12."
" Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning:"
"ansible_runner.config.runner",
"ignore: 'pipes' is deprecated and slated for removal in Python 3.13:DeprecationWarning:"
"ansible_runner.utils",
"-c",
f"import {import_path!s}",
)
Expand Down

0 comments on commit c54bf9c

Please sign in to comment.