diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-01-17 07:54:01 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-01-17 10:43:17 -0800 |
commit | a7c3b747dbe4609b015de9c6e6fc9cdce8f386a0 (patch) | |
tree | 92e1fed49446a3ae6fc43838890b8c672ac3e70a /tests/auto/network | |
parent | a67e7e3bb71cb6693b806692440f94a7012e90cb (diff) |
tst_QHostInfo: use python3
Because Python 2 reached end of life. I wonder how this even works on
macOS, as my Monterey doesn't even have "python" any more.
Pick-to: 6.2 6.4 6.5
Change-Id: Ibddb9b0ada5a4bbaa64bfffd173b239c6c4b66f3
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/network')
-rw-r--r-- | tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp index 3564e52917..4892534362 100644 --- a/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp +++ b/tests/auto/network/kernel/qhostinfo/tst_qhostinfo.cpp @@ -373,7 +373,7 @@ static QStringList reverseLookupHelper(const QString &ip) QList<QByteArray> lines; QProcess python; python.setProcessChannelMode(QProcess::ForwardedErrorChannel); - python.start("python", QStringList() << QString("-c") << pythonCode << ip); + python.start("python3", QStringList() << QString("-c") << pythonCode << ip); if (python.waitForFinished()) { if (python.exitStatus() == QProcess::NormalExit && python.exitCode() == 0) lines = python.readAllStandardOutput().split('\n'); |