Fix test for python 3.8
authorMatthias Klose <doko@ubuntu.com>
Sun, 6 Dec 2020 15:26:39 +0000 (15:26 +0000)
committerJean Baptiste Favre <debian@jbfavre.org>
Sun, 6 Dec 2020 15:26:39 +0000 (15:26 +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 190cd2389a7f093b8aa3966eb7e59a83ad4d4c80..34df2e50206be5546cd25e0a5a2f24c4b8a8c427 100755 (executable)
@@ -85,7 +85,8 @@ def command_output(cmd_str):
 
 
 def get_distro():
-    return platform.linux_distribution()
+    import distro
+    return distro.linux_distribution()
 
 
 def distro_version():