﻿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
35722	Specify behaviour in TransactionTestCase.reset_sequences	Slava M.		"https://docs.djangoproject.com/en/dev/topics/testing/advanced/#django.test.TransactionTestCase.reset_sequences

I suggest specifying behaviour of {{{TransactionTestCase.reset_sequences}}} when used in subtests https://docs.python.org/3/library/unittest.html#distinguishing-test-iterations-using-subtests.

i.e.
{{{
class TestsThatDependsOnPrimaryKeySequences(TransactionTestCase):
    reset_sequences = True

    def test_animal_pk(self):
        with self.subTest():
            lion = Animal.objects.create(name=""lion"", sound=""roar"")
            self.assertEqual(lion.pk, 1)
        with self.subTest():
            cat = Animal.objects.create(name=""cat"", sound=""meow"")
            # will this still work?
            self.assertEqual(cat.pk, 1)

}}}
add to documentation 1 sentence along the lines of:
* ""**reset_sequences** won't work with **unittest**'s **subTest()**""
* or """"**reset_sequences** also works with **unittest**'s **subTest()**"""	Cleanup/optimization	closed	Documentation	dev	Normal	wontfix	docs, test, documentation		Unreviewed	0	0	0	0	1	0
