summaryrefslogtreecommitdiff
path: root/tests/test_runner
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 /tests/test_runner
parentfa0433d05f213afe4c67055006320f7aba4c8108 (diff)
downloaddjango-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.py2
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', {})