aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/sys/opencrypto/Makefile2
-rw-r--r--tests/sys/opencrypto/cryptodev.py4
-rw-r--r--tests/sys/opencrypto/cryptotest.py4
-rw-r--r--tests/sys/opencrypto/runtests.sh2
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/sys/opencrypto/Makefile b/tests/sys/opencrypto/Makefile
index fd502fd8bae3..f9685b166afc 100644
--- a/tests/sys/opencrypto/Makefile
+++ b/tests/sys/opencrypto/Makefile
@@ -14,7 +14,7 @@ ATF_TESTS_C+= blake2_test poly1305_test
TAP_TESTS_SH+= runtests
-TEST_METADATA.runtests+= required_programs="python2"
+TEST_METADATA.runtests+= required_programs="python3"
TEST_METADATA.runtests+= required_user="root"
PYMODULES= cryptodev.py cryptodevh.py cryptotest.py
diff --git a/tests/sys/opencrypto/cryptodev.py b/tests/sys/opencrypto/cryptodev.py
index 4a96eb905e06..0fcca6c00244 100644
--- a/tests/sys/opencrypto/cryptodev.py
+++ b/tests/sys/opencrypto/cryptodev.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python2
+#!/usr/local/bin/python3
#
# Copyright (c) 2014 The FreeBSD Foundation
# Copyright 2014 John-Mark Gurney
@@ -31,7 +31,7 @@
# $FreeBSD$
#
-from __future__ import print_function
+
import array
import binascii
from fcntl import ioctl
diff --git a/tests/sys/opencrypto/cryptotest.py b/tests/sys/opencrypto/cryptotest.py
index 72543683241b..8868149bdb6f 100644
--- a/tests/sys/opencrypto/cryptotest.py
+++ b/tests/sys/opencrypto/cryptotest.py
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python2
+#!/usr/local/bin/python3
#
# Copyright (c) 2014 The FreeBSD Foundation
# All rights reserved.
@@ -30,7 +30,7 @@
# $FreeBSD$
#
-from __future__ import print_function
+
import binascii
import errno
diff --git a/tests/sys/opencrypto/runtests.sh b/tests/sys/opencrypto/runtests.sh
index 680173610a00..1bf6149f2857 100644
--- a/tests/sys/opencrypto/runtests.sh
+++ b/tests/sys/opencrypto/runtests.sh
@@ -30,7 +30,7 @@
# $FreeBSD$
#
-: ${PYTHON=python2}
+: ${PYTHON=python3}
if [ ! -d /usr/local/share/nist-kat ]; then
echo "1..0 # SKIP: nist-kat package not installed for test vectors"