Пример #1
0
 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"])
Пример #2
0
 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"])