﻿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
32516	reorder_suite(reverse=True) isn't a strict reversal when duplicates are present	Chris Jerdonek	Chris Jerdonek	"I noticed that when test duplicates are present, passing `reverse=True` to [https://github.com/django/django/blob/286fb73b6962d197ed0cf041755fb724cfe08600/django/test/runner.py#L767 reorder_suite()] isn't always a strict reversal. For example, if the tests given are `[test1, test2, test3, test1]`, then the forward direction will be `[test1, test2, test3]`, but the reversed direction will be `[test1, test3, test2]`.

This should be easy to fix by reversing only after duplicates are removed. I would suggest fixing this only after [https://github.com/django/django/pull/14085 PR #14085] is merged, since there will be less code at that point.
"	Bug	closed	Testing framework	3.1	Normal	fixed	reorder_suite		Ready for checkin	1	0	0	0	0	0
