v2.0.0
Loading...
Searching...
No Matches
python_test_helper.cpp File Reference

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>
Include dependency graph for python_test_helper.cpp:

Go to the source code of this file.

Detailed Description

Implementation of UTILSLIB::PythonTestHelper — availability cache, package probes and scalar eval helpers.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.2.0
Date
April 2026

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.