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 /tests/test_runner | |
parent | fa0433d05f213afe4c67055006320f7aba4c8108 (diff) | |
download | django-de4f6201835043ba664e8dcbdceffc4b0955ce29.tar.gz |
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 'tests/test_runner')
-rw-r--r-- | tests/test_runner/test_discover_runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_runner/test_discover_runner.py b/tests/test_runner/test_discover_runner.py index 82c0ac3947..9fb6d9f09d 100644 --- a/tests/test_runner/test_discover_runner.py +++ b/tests/test_runner/test_discover_runner.py @@ -63,7 +63,7 @@ class DiscoverRunnerTests(SimpleTestCase): msg = ( "One of the test labels is a path to a file: " "'test_discover_runner.py', which is not supported. Use a " - "dotted module name instead." + "dotted module name or path to a directory instead." ) with self.assertRaisesMessage(RuntimeError, msg): DiscoverRunner().load_tests_for_label('test_discover_runner.py', {}) |