Skip to content

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Oct 25, 2017
1 parent e087e16 commit e4a48c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions importlib_resources/tests/test_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ def test_pathlib_path(self):
path = pathlib.PurePath('utf-8.file')
resources.read(data, path)

# Don't fail if run under e.g. pytest.
@unittest.skipIf(__spec__ is None, '__spec__ is None')
def test_absolute_path(self):
# An absolute path is a ValueError.
path = pathlib.Path(__spec__.origin)
path = pathlib.Path(__file__)
full_path = path.parent/'utf-8.file'
with self.assertRaises(ValueError):
resources.read(data, str(full_path))
Expand Down

0 comments on commit e4a48c1

Please sign in to comment.