From de4f6201835043ba664e8dcbdceffc4b0955ce29 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Tue, 8 Jun 2021 01:49:11 -0700 Subject: 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/ --- tests/test_runner/test_discover_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_runner') 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', {}) -- cgit v1.3