Fix test for python 3.8
authorMatthias Klose <doko@ubuntu.com>
Sun, 22 Nov 2020 17:24:18 +0000 (17:24 +0000)
committerJean Baptiste Favre <debian@jbfavre.org>
Sun, 22 Nov 2020 17:24:18 +0000 (17:24 +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 c3528789bd293d10a57dff1ecb62001f62a68626..d39d1d9b41ad7c2e04d5d322531558e24f11f1c2 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():