aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/t-encrypt.py
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/tests/t-encrypt.py')
-rwxr-xr-xlang/python/tests/t-encrypt.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lang/python/tests/t-encrypt.py b/lang/python/tests/t-encrypt.py
index 3bed752b..24869fcd 100755
--- a/lang/python/tests/t-encrypt.py
+++ b/lang/python/tests/t-encrypt.py
@@ -17,8 +17,6 @@
# 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/>.
-import sys
-import os
from pyme import core, constants
import support
@@ -38,5 +36,4 @@ result = c.op_encrypt_result()
assert not result.invalid_recipients, \
"Invalid recipient encountered: {}".format(result.invalid_recipients.fpr)
-sink.seek(0, os.SEEK_SET)
-sys.stdout.buffer.write(sink.read())
+support.print_data(sink)