tests: reset CMakeDependency.class_cmakeinfo
@@ -438,7 +438,10 @@ def validate_output(test: TestDef, stdo: str, stde: str) -> str:
# coded to run as a batch process.
def clear_internal_caches():
import mesonbuild.interpreterbase
+ from mesonbuild.dependencies import CMakeDependency
+ from mesonbuild.mesonlib import PerMachine
mesonbuild.interpreterbase.FeatureNew.feature_registry = {}
+ CMakeDependency.class_cmakeinfo = PerMachine(None, None)
def run_test_inprocess(testdir):
old_stdout = sys.stdout
