Fix mocker usage
This commit is contained in:
parent
284e0ff66b
commit
8f0afd7780
@ -3,7 +3,8 @@
|
||||
|
||||
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 hypercore_crypto.__init__ import __version__
|
||||
|
||||
assert __version__ == 'unknown'
|
||||
|
Loading…
Reference in New Issue
Block a user