Fix test for python 3.8
authorMatthias Klose <doko@ubuntu.com>
Wed, 21 Jun 2023 09:16:56 +0000 (10:16 +0100)
committerJean Baptiste Favre <debian@jbfavre.org>
Wed, 21 Jun 2023 09:16:56 +0000 (10:16 +0100)
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 3d9e437661f9bbb5f32e54d0424e0ff8264ae2af..7b141dda3df0d0fe57f56fdce013607753938e9b 100755 (executable)
@@ -94,7 +94,8 @@ def command_output(cmd_str):
 
 
 def get_distro():
-    return linux_distribution()
+    import distro
+    return distro.linux_distribution()
 
 
 def distro_version():