diff options
author | Alexandre Detiste <alexandre.detiste@gmail.com> | 2015-05-28 21:32:51 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2015-07-14 11:47:47 +0200 |
commit | e39c7a187c04ac4d2e3837d3845f547231354457 (patch) | |
tree | 1e6f164dffd7b14124cd6bc906ee38f6aef2bb94 /test | |
parent | 247adfbd93391ebf663b3245a6542d69674e4d7b (diff) |
Port to python3, keep compatibility symlink for lsb_release.py
Closes: #719063
Diffstat (limited to 'test')
-rwxr-xr-x | test/apt-cache | 5 | ||||
-rwxr-xr-x | test/dpkg-query | 5 | ||||
-rw-r--r-- | test/test_initdutils.py | 2 | ||||
-rw-r--r-- | test/test_lsb_release.py | 3 |
4 files changed, 4 insertions, 11 deletions
diff --git a/test/apt-cache b/test/apt-cache index c9a3ae7..7492dc0 100755 --- a/test/apt-cache +++ b/test/apt-cache @@ -1,11 +1,8 @@ -#!/usr/bin/python +#!/usr/bin/python3 # coding=utf-8 # Fake apt-cache python script to emulate policy output for test usage -# Python3-compatible print() function -from __future__ import print_function - import sys import os diff --git a/test/dpkg-query b/test/dpkg-query index 8ff193b..6a79fcc 100755 --- a/test/dpkg-query +++ b/test/dpkg-query @@ -1,10 +1,7 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Fake dpkg-query python script to emulate output for test usage -# Python3-compatible print() function -from __future__ import print_function - import sys import os import random diff --git a/test/test_initdutils.py b/test/test_initdutils.py index cdb5a9e..07952d8 100644 --- a/test/test_initdutils.py +++ b/test/test_initdutils.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import unittest import initdutils as iu diff --git a/test/test_lsb_release.py b/test/test_lsb_release.py index ae1e1c9..8681bec 100644 --- a/test/test_lsb_release.py +++ b/test/test_lsb_release.py @@ -1,6 +1,5 @@ -#!/usr/bin/python +#!/usr/bin/python3 # coding=utf-8 -from __future__ import unicode_literals import unittest |