diff --git a/hatch_build.py b/hatch_build.py index 91315eb09f..40271972dd 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -19,7 +19,7 @@ def initialize(self, version, build_data): here = Path(__file__).parent.resolve() sys.path.insert(0, str(here)) - subprocess.check_call([sys.executable, "_setup.py", "build_ext", "-i"]) + subprocess.run([sys.executable, "_setup.py", "build_ext", "-i"], check=True) # Ensure wheel is marked as binary and contains the binary files. build_data["infer_tag"] = True diff --git a/test/__init__.py b/test/__init__.py index e0646ce894..f143730d2c 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -369,7 +369,7 @@ def fips_enabled(self): if self._fips_enabled is not None: return self._fips_enabled try: - subprocess.check_call(["fips-mode-setup", "--is-enabled"]) + subprocess.run(["fips-mode-setup", "--is-enabled"], check=True) self._fips_enabled = True except (subprocess.SubprocessError, FileNotFoundError): self._fips_enabled = False diff --git a/test/asynchronous/__init__.py b/test/asynchronous/__init__.py index 48c9dc2920..af473e7c6a 100644 --- a/test/asynchronous/__init__.py +++ b/test/asynchronous/__init__.py @@ -369,7 +369,7 @@ def fips_enabled(self): if self._fips_enabled is not None: return self._fips_enabled try: - subprocess.check_call(["fips-mode-setup", "--is-enabled"]) + subprocess.run(["fips-mode-setup", "--is-enabled"], check=True) self._fips_enabled = True except (subprocess.SubprocessError, FileNotFoundError): self._fips_enabled = False