Skip to content

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commented Apr 14, 2021

  • byte_compile() of distutils.utils no longer logs a
    DeprecationWarning
  • test_distutils no longer logs a DeprecationWarning

https://bugs.python.org/issue41282

* byte_compile() of distutils.utils no longer logs a DeprecationWarning * test_distutils no longer logs a DeprecationWarning
msg = distutils._DEPRECATION_MESSAGE
cmd = [sys.executable]
cmd.extend(subprocess._optim_args_from_interpreter_flags())
cmd.append(f'-Wignore:{msg}:DeprecationWarning')
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly, -W option escapes the message using re.escape(), it's not possible to use a regex :-(

@vstinner
Copy link
MemberAuthor

cc @tirkarthi

@vstinnervstinner merged commit 69ca32e into python:masterApr 16, 2021
@vstinnervstinner deleted the fix_distutils_deprecatation_warns branch April 16, 2021 09:26
@jaracojaraco mentioned this pull request May 9, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@the-knights-who-say-ni@bedevere-bot