Fixed scanner_test which was broken.

The monkeypatching made to hscommon.io wasn't correctly transferred to Path
after the migration at [dfc82cd].
This commit is contained in:
Virgil Dupras 2013-04-28 10:43:20 -04:00
parent 4a8ce9b6c4
commit 6dddcb1a47
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ def pytest_funcarg__fake_fileexists(request):
# for file existence before doing the match grouping.
monkeypatch = request.getfuncargvalue('monkeypatch')
monkeypatch.setattr(io, 'exists', lambda _: True)
monkeypatch.setattr(Path, 'exists', lambda _: True)
def test_empty(fake_fileexists):
s = Scanner()