Skip to content

Commit

Permalink
Python3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed Feb 3, 2015
1 parent 5e0c9b0 commit 177fd33
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mots_vides/tests/stop_words.py
Expand Up @@ -183,12 +183,10 @@ class StopWordRebaseFunctionalTestCase(TestCase):
def test_stop_word_rebase_functional(self):
current_dir = os.path.dirname(__file__)
file_name = os.path.join(current_dir, 'corpus', 'french.txt')
file_content = '\n'.join(open(file_name, 'rb').readlines()
).decode('utf-8')
file_content = open(file_name, 'rb').read().decode('utf-8')
solution_name = os.path.join(current_dir,
'corpus', 'french_solution.txt')
solution_content = '\n'.join(open(solution_name, 'rb').readlines()
).decode('utf-8')
solution_content = open(solution_name, 'rb').read().decode('utf-8')

factory = StopWordFactory()
stop_words = factory.get_stop_words('fr')
Expand Down

0 comments on commit 177fd33

Please sign in to comment.