﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32808	DiscoverRunner.build_suite() does not restore self.test_loader.testNamePatterns	Chris Jerdonek	Mariusz Felisiak	"`DiscoverRunner.build_suite()` does not restore `self.test_loader.testNamePatterns` after setting it in this line:
https://github.com/django/django/blob/e703b152c6148ddda1b072a4353e9a41dca87f90/django/test/runner.py#L639

I noticed this issue when finding a test isolation issue while working on #24522. The test `test_runner.test_discover_runner.DiscoverRunnerTests.test_name_patterns` passes `test_name_patterns` to `DiscoverRunner`:
https://github.com/django/django/blob/e703b152c6148ddda1b072a4353e9a41dca87f90/tests/test_runner/test_discover_runner.py#L119-L122

And this causes some later tests to fail.
"	Bug	closed	Testing framework	3.2	Normal	fixed			Accepted	1	0	0	0	0	0
