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

Skip to content

Commit 5937318

Browse files
authored
Merge pull request #25721 from QuLogic/skip-black-test
2 parents 7103779 + f987348 commit 5937318

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/matplotlib/tests/test_pyplot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313

1414
def test_pyplot_up_to_date(tmpdir):
15+
pytest.importorskip("black")
16+
1517
gen_script = Path(mpl.__file__).parents[2] / "tools/boilerplate.py"
1618
if not gen_script.exists():
1719
pytest.skip("boilerplate.py not found")

tools/boilerplate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ def build_pyplot(pyplot_path):
386386

387387
# Run black to autoformat pyplot
388388
subprocess.run(
389-
[sys.executable, "-m", "black", "--line-length=88", pyplot_path]
389+
[sys.executable, "-m", "black", "--line-length=88", pyplot_path],
390+
check=True
390391
)
391392

392393

0 commit comments

Comments
 (0)