summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-02-22 19:48:18 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-03-01 10:34:56 -0800
commit6a8cdaf9ae7d736e55c7a389444fa874905a8bda (patch)
treed1cc6ffb9d623c20c9e07e63bb5133f36f888bf3 /tests
parent6c4e8c4e3919042b51c8ca95c2d219736976f2e1 (diff)
helper: py3k fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/helper_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/helper_test.py b/tests/helper_test.py
index 72729c48..1d20caa8 100644
--- a/tests/helper_test.py
+++ b/tests/helper_test.py
@@ -143,13 +143,13 @@ class TestSplitCommandstring(unittest.TestCase):
self.assertListEqual(actual, expected)
def test_bytes(self):
- base = b'echo "foo bar"'
- expected = [b'echo', b'foo bar']
+ base = 'echo "foo bar"'
+ expected = ['echo', 'foo bar']
self._test(base, expected)
def test_unicode(self):
- base = u'echo "foo €"'
- expected = [b'echo', u'foo €'.encode('utf-8')]
+ base = 'echo "foo €"'
+ expected = ['echo', 'foo €']
self._test(base, expected)
@@ -251,7 +251,7 @@ class TestPrettyDatetime(unittest.TestCase):
expected = test.strftime('%I:%M%p').lower()
else:
expected = test.strftime('%H:%M')
- expected = expected.decode('utf-8')
+ expected = expected
return expected
def test_future_seconds(self):