summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2021-06-08 01:49:11 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-06-10 20:19:30 +0200
commitde4f6201835043ba664e8dcbdceffc4b0955ce29 (patch)
tree7ffdd5cf46bb3ec911319732319bbd69e5e99d56 /django
parentfa0433d05f213afe4c67055006320f7aba4c8108 (diff)
Fixed #32609 -- Updated runtests.py to support directory path test labels.
For example, with this change, the following now works from the tests directory: $ ./runtests.py view_tests/tests/
Diffstat (limited to 'django')
-rw-r--r--django/test/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/test/runner.py b/django/test/runner.py
index 71bee37297..ee570b0892 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -629,8 +629,8 @@ class DiscoverRunner:
assert tests is None
raise RuntimeError(
f'One of the test labels is a path to a file: {label!r}, '
- f'which is not supported. Use a dotted module name '
- f'instead.'
+ f'which is not supported. Use a dotted module name or '
+ f'path to a directory instead.'
)
return tests