From c76f43a43e38e85fb9cc8524bc97b9a8b48a86df Mon Sep 17 00:00:00 2001 From: harupy Date: Sun, 5 Dec 2021 03:26:28 +0900 Subject: [PATCH] fix test_mkdir Signed-off-by: harupy --- tests/utils/test_file_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/test_file_utils.py b/tests/utils/test_file_utils.py index 8fbe525f169db..223ac53774ec0 100644 --- a/tests/utils/test_file_utils.py +++ b/tests/utils/test_file_utils.py @@ -95,7 +95,7 @@ def test_mkdir(tmpdir): # raises if it exists already but is a file dummy_file_path = str(tmpdir.join("dummy_file")) open(dummy_file_path, "a").close() - with pytest.raises(OSError, match="File exists"): + with pytest.raises(OSError, match="exists"): file_utils.mkdir(dummy_file_path)