summaryrefslogtreecommitdiff
path: root/tests/testutils/test_functional_testutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils/test_functional_testutils.py')
-rw-r--r--tests/testutils/test_functional_testutils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testutils/test_functional_testutils.py b/tests/testutils/test_functional_testutils.py
index e0055f1b0..e12fd7a84 100644
--- a/tests/testutils/test_functional_testutils.py
+++ b/tests/testutils/test_functional_testutils.py
@@ -41,7 +41,11 @@ def test_parsing_of_pylintrc_init_hook() -> None:
def test_get_functional_test_files_from_directory() -> None:
"""Test that we correctly check the functional test directory structures."""
- with pytest.raises(AssertionError, match="using_dir.py should not go in"):
+ match = (
+ "using_dir.py should go in a directory that starts with the "
+ "first letters of 'using_dir'"
+ )
+ with pytest.raises(AssertionError, match=match):
get_functional_test_files_from_directory(DATA_DIRECTORY / "u")