From 6dddcb1a47f1b4cb7cac9c35d038fc5438be554e Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 28 Apr 2013 10:43:20 -0400 Subject: [PATCH] Fixed scanner_test which was broken. The monkeypatching made to hscommon.io wasn't correctly transferred to Path after the migration at [dfc82cd]. --- core/tests/scanner_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tests/scanner_test.py b/core/tests/scanner_test.py index 73307cac..08594282 100644 --- a/core/tests/scanner_test.py +++ b/core/tests/scanner_test.py @@ -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()