Skip to content

Commit 5695620

Browse files
committed
Test error string
1 parent a6f17c0 commit 5695620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/tests/unit/test_load_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ def test_axl_filename(self):
1818

1919
def test_raise_error_if_file_empty(self):
2020
path = pathlib.Path("not/a/file.py")
21-
with self.assertRaises(FileNotFoundError):
21+
with self.assertRaisesRegex(FileNotFoundError, str(path)):
2222
load_file(path, ".")

0 commit comments

Comments
 (0)