aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-14 09:39:00 +0000
committerJustus Winter <[email protected]>2016-09-14 10:15:57 +0000
commitdc23fdf55561659f9e9cff51668ac9c6c027c885 (patch)
tree61aeb795d2b6fa92eadde043581340c7172f0ea8 /lang/python/tests
parentpython: Use more generic shebang. (diff)
downloadgpgme-dc23fdf55561659f9e9cff51668ac9c6c027c885.tar.gz
gpgme-dc23fdf55561659f9e9cff51668ac9c6c027c885.zip
python: Import from __future__ to align behavior of Python 2.7.
-- Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/tests')
-rwxr-xr-xlang/python/tests/final.py3
-rwxr-xr-xlang/python/tests/initial.py3
-rw-r--r--lang/python/tests/support.py3
-rwxr-xr-xlang/python/tests/t-callbacks.py3
-rwxr-xr-xlang/python/tests/t-data.py3
-rwxr-xr-xlang/python/tests/t-decrypt-verify.py3
-rwxr-xr-xlang/python/tests/t-decrypt.py3
-rwxr-xr-xlang/python/tests/t-edit.py3
-rwxr-xr-xlang/python/tests/t-encrypt-large.py3
-rwxr-xr-xlang/python/tests/t-encrypt-sign.py3
-rwxr-xr-xlang/python/tests/t-encrypt-sym.py3
-rwxr-xr-xlang/python/tests/t-encrypt.py3
-rwxr-xr-xlang/python/tests/t-export.py3
-rwxr-xr-xlang/python/tests/t-file-name.py3
-rwxr-xr-xlang/python/tests/t-idiomatic.py3
-rwxr-xr-xlang/python/tests/t-import.py3
-rwxr-xr-xlang/python/tests/t-keylist.py3
-rwxr-xr-xlang/python/tests/t-protocol-assuan.py3
-rwxr-xr-xlang/python/tests/t-sig-notation.py3
-rwxr-xr-xlang/python/tests/t-sign.py3
-rwxr-xr-xlang/python/tests/t-signers.py3
-rwxr-xr-xlang/python/tests/t-trustlist.py3
-rwxr-xr-xlang/python/tests/t-verify.py3
-rwxr-xr-xlang/python/tests/t-wait.py3
24 files changed, 72 insertions, 0 deletions
diff --git a/lang/python/tests/final.py b/lang/python/tests/final.py
index 15010aff..8e7ab339 100755
--- a/lang/python/tests/final.py
+++ b/lang/python/tests/final.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import os
import subprocess
diff --git a/lang/python/tests/initial.py b/lang/python/tests/initial.py
index 7adaa919..2d4827a0 100755
--- a/lang/python/tests/initial.py
+++ b/lang/python/tests/initial.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import os
import subprocess
import pyme
diff --git a/lang/python/tests/support.py b/lang/python/tests/support.py
index f42fc2ec..4d7135e9 100644
--- a/lang/python/tests/support.py
+++ b/lang/python/tests/support.py
@@ -15,6 +15,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import sys
import os
from pyme import core
diff --git a/lang/python/tests/t-callbacks.py b/lang/python/tests/t-callbacks.py
index fc586831..b3b43497 100755
--- a/lang/python/tests/t-callbacks.py
+++ b/lang/python/tests/t-callbacks.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import os
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-data.py b/lang/python/tests/t-data.py
index 6e05d130..4812a2e7 100755
--- a/lang/python/tests/t-data.py
+++ b/lang/python/tests/t-data.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import io
import os
import tempfile
diff --git a/lang/python/tests/t-decrypt-verify.py b/lang/python/tests/t-decrypt-verify.py
index 6518d792..a38a965b 100755
--- a/lang/python/tests/t-decrypt-verify.py
+++ b/lang/python/tests/t-decrypt-verify.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import pyme
from pyme import core, constants, errors
import support
diff --git a/lang/python/tests/t-decrypt.py b/lang/python/tests/t-decrypt.py
index 3b0c484d..2d85bc2b 100755
--- a/lang/python/tests/t-decrypt.py
+++ b/lang/python/tests/t-decrypt.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import pyme
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-edit.py b/lang/python/tests/t-edit.py
index 8bebe67f..9ba187d5 100755
--- a/lang/python/tests/t-edit.py
+++ b/lang/python/tests/t-edit.py
@@ -18,6 +18,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import sys
import os
from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt-large.py b/lang/python/tests/t-encrypt-large.py
index d5b9dc90..b9cc3b57 100755
--- a/lang/python/tests/t-encrypt-large.py
+++ b/lang/python/tests/t-encrypt-large.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import sys
import random
from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt-sign.py b/lang/python/tests/t-encrypt-sign.py
index 8c4b5d93..a453f796 100755
--- a/lang/python/tests/t-encrypt-sign.py
+++ b/lang/python/tests/t-encrypt-sign.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import sys
import pyme
from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt-sym.py b/lang/python/tests/t-encrypt-sym.py
index c279d6a8..d5771845 100755
--- a/lang/python/tests/t-encrypt-sym.py
+++ b/lang/python/tests/t-encrypt-sym.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import os
import pyme
from pyme import core, constants
diff --git a/lang/python/tests/t-encrypt.py b/lang/python/tests/t-encrypt.py
index 456f2c1a..65e7d248 100755
--- a/lang/python/tests/t-encrypt.py
+++ b/lang/python/tests/t-encrypt.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import pyme
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-export.py b/lang/python/tests/t-export.py
index f8d02f2f..db36b989 100755
--- a/lang/python/tests/t-export.py
+++ b/lang/python/tests/t-export.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-file-name.py b/lang/python/tests/t-file-name.py
index 09eb1f98..e93b1200 100755
--- a/lang/python/tests/t-file-name.py
+++ b/lang/python/tests/t-file-name.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import os
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-idiomatic.py b/lang/python/tests/t-idiomatic.py
index 6dbe6209..f0632064 100755
--- a/lang/python/tests/t-idiomatic.py
+++ b/lang/python/tests/t-idiomatic.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import sys
import io
import os
diff --git a/lang/python/tests/t-import.py b/lang/python/tests/t-import.py
index b267fc85..0b50d027 100755
--- a/lang/python/tests/t-import.py
+++ b/lang/python/tests/t-import.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-keylist.py b/lang/python/tests/t-keylist.py
index 7b7bbaec..5e8b3336 100755
--- a/lang/python/tests/t-keylist.py
+++ b/lang/python/tests/t-keylist.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-protocol-assuan.py b/lang/python/tests/t-protocol-assuan.py
index a86146b7..172c7d0c 100755
--- a/lang/python/tests/t-protocol-assuan.py
+++ b/lang/python/tests/t-protocol-assuan.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import pyme
with pyme.Context(protocol=pyme.constants.PROTOCOL_ASSUAN) as c:
diff --git a/lang/python/tests/t-sig-notation.py b/lang/python/tests/t-sig-notation.py
index c5230065..777bc0b5 100755
--- a/lang/python/tests/t-sig-notation.py
+++ b/lang/python/tests/t-sig-notation.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import os
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-sign.py b/lang/python/tests/t-sign.py
index 5f26ff35..b0e211a1 100755
--- a/lang/python/tests/t-sign.py
+++ b/lang/python/tests/t-sign.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import os
import pyme
from pyme import core, constants
diff --git a/lang/python/tests/t-signers.py b/lang/python/tests/t-signers.py
index 7b064c93..11403aff 100755
--- a/lang/python/tests/t-signers.py
+++ b/lang/python/tests/t-signers.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import pyme
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-trustlist.py b/lang/python/tests/t-trustlist.py
index a33e35e6..4253bd7e 100755
--- a/lang/python/tests/t-trustlist.py
+++ b/lang/python/tests/t-trustlist.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
from pyme import core, constants
import support
diff --git a/lang/python/tests/t-verify.py b/lang/python/tests/t-verify.py
index 25c8c0c1..39f6176d 100755
--- a/lang/python/tests/t-verify.py
+++ b/lang/python/tests/t-verify.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import sys
import os
import pyme
diff --git a/lang/python/tests/t-wait.py b/lang/python/tests/t-wait.py
index 9f3a7edd..b7d9a34b 100755
--- a/lang/python/tests/t-wait.py
+++ b/lang/python/tests/t-wait.py
@@ -17,6 +17,9 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
import time
from pyme import core, constants, errors
import support