diff --git a/tests/test_module_abi_c.py b/tests/test_module_abi_c.py index b841567..d885e73 100644 --- a/tests/test_module_abi_c.py +++ b/tests/test_module_abi_c.py @@ -3,6 +3,7 @@ from __future__ import annotations +import os from pathlib import Path import subprocess import tempfile @@ -56,10 +57,10 @@ int main(void) { self.assertEqual(result.returncode, 0, result.stderr) def test_header_is_c11(self) -> None: - self.compile("cc", "c", "-std=c11") + self.compile(os.environ.get("CC", "cc"), "c", "-std=c11") def test_header_is_cpp20(self) -> None: - self.compile("c++", "cpp", "-std=c++20") + self.compile(os.environ.get("CXX", "c++"), "cpp", "-std=c++20") if __name__ == "__main__":