Fix mocker usage
This commit is contained in:
parent
05b5b27906
commit
2987cac885
@ -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 merkle_tree_stream.__init__ import __version__
|
||||
|
||||
assert __version__ == 'unknown'
|
||||
|
Loading…
Reference in New Issue
Block a user