Fix test for python 3.8
authorMatthias Klose <doko@ubuntu.com>
Mon, 3 Feb 2020 10:45:17 +0000 (10:45 +0000)
committerJean Baptiste Favre <debian@jbfavre.org>
Mon, 3 Feb 2020 10:45:17 +0000 (10:45 +0000)
Reviewed-by: Jean Baptiste Favre <jbfavre@debian.org>
Last-Update: 2020-02-03

Last-Update: 2020-02-03
Gbp-Pq: Name 0016-fix_python_3.8.patch

tests/bootstrap.py

index 892345e792d457e0634f0a3e6f17004bb49e6ae9..fffbb6e500777dd7b1f3534cbe207a9c970f9121 100755 (executable)
@@ -81,7 +81,8 @@ def command_output(cmd_str):
 
 
 def get_distro():
-    return platform.linux_distribution()
+    import distro
+    return distro.linux_distribution()
 
 
 def distro_version():