def test_set_build_env(self) -> None: local_build = Path("/usr/local") build_env = ptr._set_build_env(local_build) self.assertTrue("{}/include".format(str(local_build)) in build_env["C_INCLUDE_PATH"]) self.assertTrue("{}/include".format(str(local_build)) in build_env["CPLUS_INCLUDE_PATH"])
def test_set_build_env(self) -> None: local_build_path = Path(gettempdir()) build_env = ptr._set_build_env(local_build_path) self.assertTrue( str(local_build_path / "include") in build_env["C_INCLUDE_PATH"]) self.assertTrue( str(local_build_path / "include") in build_env["CPLUS_INCLUDE_PATH"])