Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteeb2fe4

Browse files
committed
TST: Ensure pytest assertion rewriting occurs in subprocesses
This means that:1. assertion failures look a little better2. assertions actually happen if optimization is enabled
1 parentc4a5bb7 commiteeb2fe4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎lib/matplotlib/testing/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def subprocess_run_helper(func, *args, timeout, extra_env=None):
129129
[
130130
sys.executable,
131131
"-c",
132+
f"import pytest;"
133+
f"pytest.register_assert_rewrite({module!r});"
132134
f"import importlib.util;"
133135
f"_spec = importlib.util.spec_from_file_location({module!r},{file!r});"
134136
f"_module = importlib.util.module_from_spec(_spec);"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp