Commit d7b99066 authored by Thomas Haller's avatar Thomas Haller

clients/tests: skip client tests with python 3.8-beta

It's unclear how to workaround this issue, so that the tests
work with older python versions and 3.8-beta.

Let's wait whether this will really be released as 3.8 and
for now just skip the test.
parent 35c83138
Pipeline #66636 passed with stages
in 45 minutes and 3 seconds
......@@ -1106,6 +1106,13 @@ class TestNmcli(NmTestBase):
def main():
global dbus_session_inited
if sys.version_info.major == 3 and sys.version_info.minor == 8 and sys.version_info.releaselevel == 'beta':
# 3.8-beta changed behavior for the line numbers, which
# breaks the tests (https://bugs.python.org/issue38283)
# skip the test for now.
print("WARNING: skip client test with python 3.8-beta")
sys.exit(0)
if len(sys.argv) >= 2 and sys.argv[1] == '--started-with-dbus-session':
dbus_session_inited = True
del sys.argv[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment