Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runner warning exclusion #1254

Merged
merged 1 commit into from
Jul 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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