Skip to content

Commit cd52348

Browse files
committed
Also capture stderr so that no errors are seen on console
Signed-off-by: Pedro Algarvio <[email protected]>
1 parent f735553 commit cd52348

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/33.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Also capture ``stderr`` so that no errors are seen on console when checking for FIPS support

src/pytestskipmarkers/utils/platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def is_fips_enabled() -> bool:
217217
[sysctl_path, "crypto.fips_enabled"],
218218
check=False,
219219
shell=False,
220-
stdout=subprocess.PIPE,
220+
capture_output=True,
221221
text=True,
222222
)
223223
if ret.returncode == 0:

0 commit comments

Comments
 (0)