mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-23 04:00:39 +02:00
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.
(cherry picked from commit d7b9906666)
This commit is contained in:
parent
6525c0d277
commit
460ed8112f
1 changed files with 7 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue