Skip to content

Commit

Permalink
fixed regression in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Dec 13, 2016
1 parent 09531ea commit d24eb9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_resource.py
Expand Up @@ -377,6 +377,7 @@ def test_load_url(self):

resource_dict = {
'url': url,
'encoding': 'utf-8',
}

resource = TabularResource(resource_dict)
Expand Down Expand Up @@ -458,7 +459,7 @@ def test_iterator_with_local_data(self, csv_tmpfile):
csv_tmpfile.write(csv_contents)
csv_tmpfile.flush()

resource = TabularResource({'path': csv_tmpfile.name})
resource = TabularResource({'path': csv_tmpfile.name, 'encoding': 'utf-8'})
data = [row for row in resource.iter()]

assert data == [
Expand Down

0 comments on commit d24eb9b

Please sign in to comment.