This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author remi.lapeyre
Recipients remi.lapeyre
Date 2020-05-04.09:54:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588586088.87.0.880898235091.issue40497@roundup.psfhosted.org>
In-reply-to
Content
The subprocess.check_output() raises TypeError when given the `check` keyword-argument:

Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.check_output(['ls'], check=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
TypeError: run() got multiple values for keyword argument 'check'

It should just use True as the default when it's not specified in kwargs.
History
Date User Action Args
2020-05-04 09:54:48remi.lapeyresetrecipients: + remi.lapeyre
2020-05-04 09:54:48remi.lapeyresetmessageid: <1588586088.87.0.880898235091.issue40497@roundup.psfhosted.org>
2020-05-04 09:54:48remi.lapeyrelinkissue40497 messages
2020-05-04 09:54:48remi.lapeyrecreate