diff options
| author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2021-06-08 01:49:11 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-06-10 20:19:30 +0200 |
| commit | de4f6201835043ba664e8dcbdceffc4b0955ce29 (patch) | |
| tree | 7ffdd5cf46bb3ec911319732319bbd69e5e99d56 /django | |
| parent | fa0433d05f213afe4c67055006320f7aba4c8108 (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.py | 4 |
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 |
