(example_lib)
| 114 | |
| 115 | @pytest.fixture(scope="module") |
| 116 | def kernel(example_lib) -> Kernel: |
| 117 | k = Kernel(example_lib) |
| 118 | import subprocess |
| 119 | |
| 120 | sp = ( |
| 121 | subprocess.check_output( |
| 122 | ["lake", "env", "printenv", "LEAN_PATH"], |
| 123 | cwd=str(Path(__file__).parent / "lean"), |
| 124 | ) |
| 125 | .decode() |
| 126 | .strip() |
| 127 | ) |
| 128 | k.init_search(sp) |
| 129 | k.load(["Init", "LeanPy.Z3"]) |
| 130 | set_kernel(k) |
| 131 | return k |
| 132 | |
| 133 | |
| 134 | # =================================================================== |
nothing calls this directly
no test coverage detected