From cf109cfa193cb98c701c51dd6508758712ce8b93 Mon Sep 17 00:00:00 2001
From: Evan Edmond <evan.edmond@ndcn.ox.ac.uk>
Date: Wed, 31 Mar 2021 06:37:29 +0000
Subject: [PATCH] simplify tests

---
 tests/test_image.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/test_image.py b/tests/test_image.py
index 80423b7e..e2e7f213 100644
--- a/tests/test_image.py
+++ b/tests/test_image.py
@@ -150,8 +150,7 @@ def test_load():
         # Not raising an error means the test passes
         for fname in shouldPass:
             fslimage.Image(op.join(testdir, fname))
-            testpath = Path(testdir) / fname
-            fslimage.Image(testpath)
+            fslimage.Image(Path(testdir) / fname)
 
         # These should raise an error
         for fname, exc in shouldRaise:
-- 
GitLab