summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 899fc6d6..eb744381 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Test suite for the util module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -156,7 +155,7 @@ def test_duplicates_removed_nonconsecutive():
def test_guess_decode():
# UTF-8 should be decoded as UTF-8
- s = util.guess_decode('\xff'.encode('utf-8'))
+ s = util.guess_decode('\xff'.encode())
assert s == ('\xff', 'utf-8')
# otherwise, it could be latin1 or the locale encoding...
@@ -172,7 +171,7 @@ def test_guess_decode_from_terminal():
s = util.guess_decode_from_terminal('\xff'.encode('utf-7'), Term)
assert s == ('\xff', 'utf-7')
- s = util.guess_decode_from_terminal('\xff'.encode('utf-8'), Term)
+ s = util.guess_decode_from_terminal('\xff'.encode(), Term)
assert s == ('\xff', 'utf-8')