Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov committed Jan 8, 2021
1 parent 8808403 commit f614141
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion smart_open/smart_open_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import pathlib
import urllib.parse
import warnings
import sys

#
# This module defines a function called smart_open so we cannot use
Expand Down
8 changes: 7 additions & 1 deletion smart_open/tests/test_hdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ def cat(path=None):
class CliRawInputBaseTest(unittest.TestCase):
def setUp(self):
self.path = P.join(CURR_DIR, 'test_data', 'crime-and-punishment.txt')
with open(self.path) as fin:

#
# We have to specify the encoding explicitly, because different
# platforms like Windows may be using something other than unicode
# by default.
#
with open(self.path, encoding='utf-8') as fin:
self.expected = fin.read()
self.cat = cat(self.path)

Expand Down

0 comments on commit f614141

Please sign in to comment.