Skip to content

Commit d13f6a9

Browse files
committed
fix broken test
1 parent 6a25130 commit d13f6a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_view.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
import os
5+
import sys
56
from nose.tools import eq_
67
from pyexcel_cli.view import view
78
from click.testing import CliRunner
@@ -37,7 +38,11 @@ def test_csv_encoding_option():
3738
"--csv-dest-lineterminator", "\n",
3839
test_fixture])
3940
eq_(result.exit_code, 0)
40-
eq_(result.output, 'Äkkilähdöt,Matkakirjoituksia,Matkatoimistot\n')
41+
if sys.version_info[0] == 2:
42+
output = result.output.encode('utf-8')
43+
else:
44+
output = result.output
45+
eq_(output, 'Äkkilähdöt,Matkakirjoituksia,Matkatoimistot\n')
4146

4247

4348
def test_url_option():

0 commit comments

Comments
 (0)