Implementation of UTILSLIB::PythonTestHelper — availability cache, package probes and scalar eval helpers.
More...
#include "python_test_helper.h"#include <QCoreApplication>#include <QDir>#include <QFile>#include <QProcessEnvironment>#include <QTextStream>#include <QRegularExpression>
Go to the source code of this file.
Implementation of UTILSLIB::PythonTestHelper — availability cache, package probes and scalar eval helpers.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
The interpreter availability check and the package probe results are memoised in static QHash members so the potentially slow first PythonRunner invocation only happens once per test executable. MNE_REQUIRE_PYTHON is honoured here too so the helper's own probes participate in the "skip vs hard-fail" policy used by the guard macros.
Definition in file python_test_helper.cpp.