-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
Hello,
When calling pytest --version
, Pytest writes the version to stderr, which should be stdout I think. This is a problem to create automation tooling around it.
Example :
import subprocess
res = subprocess.run(["pytest", "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
res
> CompletedProcess(args=['pytest', '--version'], returncode=0, stdout=b'', stderr=b'pytest 6.1.2\r\n')
Context :
Pytest 6.1.2
Python 3.9.0
Windows 10 20H2
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch