Fix mocker usage
This commit is contained in:
parent
2e4e5036dd
commit
b21545348e
@ -3,7 +3,6 @@
|
||||
|
||||
def test_version_fails_gracefully(mocker):
|
||||
target = 'pkg_resources.get_distribution'
|
||||
with mocker.patch(target, side_effect=Exception()):
|
||||
mocker.patch(target, side_effect=Exception())
|
||||
from flat_tree.__init__ import __version__
|
||||
|
||||
assert __version__ == 'unknown'
|
||||
|
Loading…
Reference in New Issue
Block a user