From dac9abcc1443c880cdeae2f075f8abdcf8e80449 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Wed, 13 Dec 2017 19:44:27 +1030
Subject: [PATCH] filenotfounderror no exist in python 2

---
 tests/test_dicom.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_dicom.py b/tests/test_dicom.py
index 94c2f887b..2e214bfa0 100644
--- a/tests/test_dicom.py
+++ b/tests/test_dicom.py
@@ -43,7 +43,7 @@ def test_enabled():
         fsldcm.enabled.invalidate()
         # test dcm2niix not present
         with mock.patch('subprocess.check_output',
-                        side_effect=FileNotFoundError()):
+                        side_effect=Exception()):
             assert not fsldcm.enabled()
 
         # test presence of different versions
-- 
GitLab