summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexandre Detiste <alexandre.detiste@gmail.com>2015-05-28 21:32:51 +0200
committerDidier Raboud <odyx@debian.org>2015-07-14 11:47:47 +0200
commite39c7a187c04ac4d2e3837d3845f547231354457 (patch)
tree1e6f164dffd7b14124cd6bc906ee38f6aef2bb94 /test
parent247adfbd93391ebf663b3245a6542d69674e4d7b (diff)
Port to python3, keep compatibility symlink for lsb_release.py
Closes: #719063
Diffstat (limited to 'test')
-rwxr-xr-xtest/apt-cache5
-rwxr-xr-xtest/dpkg-query5
-rw-r--r--test/test_initdutils.py2
-rw-r--r--test/test_lsb_release.py3
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