🚑 Explicitly set encoding @ `subprocess.run()`
This invocation is present in the `test_issue_9765` regression test that is always skipped unconditionally, resulting in the `EncodingWarning` never manifesting itself in CI or development environments of the contributors.
This commit is contained in:
parent
80b7657b2a
commit
3b6f09e210
|
@ -1471,7 +1471,11 @@ def test_issue_9765(pytester: Pytester) -> None:
|
||||||
# the bug. We also use pytest rather than python -m pytest for the same
|
# the bug. We also use pytest rather than python -m pytest for the same
|
||||||
# PYTHONPATH reason.
|
# PYTHONPATH reason.
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["pytest", "my_package"], capture_output=True, check=True, text=True
|
["pytest", "my_package"],
|
||||||
|
capture_output=True,
|
||||||
|
check=True,
|
||||||
|
encoding="utf-8",
|
||||||
|
text=True,
|
||||||
)
|
)
|
||||||
except subprocess.CalledProcessError as exc:
|
except subprocess.CalledProcessError as exc:
|
||||||
raise AssertionError(
|
raise AssertionError(
|
||||||
|
|
Loading…
Reference in New Issue