Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 614f922

Browse files
committed
DOC,STY,FIX: Fix syntax for names keyword argument.
Also add a few reference links and types.
1 parent eb1d707 commit 614f922

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lib/matplotlib/testing/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,16 @@ def subprocess_run_for_testing(
5656
timeout: float = None,
5757
stdout=None,
5858
stderr=None,
59-
check=False,
60-
text=True,
61-
capture_output=False
59+
check: bool = False,
60+
text: bool = True,
61+
capture_output: bool = False
6262
) -> "subprocess.Popen":
6363
"""
6464
Create and run a subprocess.
6565
66-
Thin wrapper around subprocess.run, intended for testing.
66+
Thin wrapper around `subprocess.run`, intended for testing. Will
67+
mark fork() failures on Cygwin as expected failures: not a
68+
success, but not indicating a problem with the code either.
6769
6870
Parameters
6971
----------
@@ -73,9 +75,9 @@ def subprocess_run_for_testing(
7375
stdout, stderr
7476
check : bool
7577
text : bool
76-
Also called `universal_newlines` in subprocess. I chose this
77-
name since the main effect is returning bytes (False) vs. str
78-
(True), though it also tries to normalize newlines across
78+
Also called ``universal_newlines`` in subprocess. I chose this
79+
name since the main effect is returning bytes (`False`) vs. str
80+
(`True`), though it also tries to normalize newlines across
7981
platforms.
8082
capture_output : bool
8183
Set stdout and stderr to subprocess.PIPE

0 commit comments

Comments
 (0)