Skip to content

Commit

Permalink
Fixed flake8 issue with context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLee1521 committed Oct 21, 2017
1 parent 6b4078b commit 760dc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_without_filename(self):
def test_with_empty_filename(self):
"""Should raise a `FileNotFoundError`"""
with self.assertRaises(FileNotFoundError):
with smart_open('') as fh:
with smart_open(''):
pass

def test_with_real_filename(self):
Expand Down

0 comments on commit 760dc18

Please sign in to comment.