﻿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
23598	The testing framework has leaky scoping when defining models in tests	Nicholas A Lourie	nobody	"If you define two subclasses of the models.Model class with the same name in two different methods of a TestCase subclass, they should exist in separate scopes and so be two completely distinct classes; however, whichever test method is run first has it's model subclass definition eclipse the others by the same name.

This bug occurs in Django 1.6, but in Django 1.7 this bug is avoided because defining the model in two different scopes raises a RuntimeError with a message along the lines of ""RuntimeError: Conflicting 'class' models in application 'test_bug'"".

See attached example."	Bug	closed	Testing framework	1.6	Normal	fixed		developer.nick@…	Unreviewed	0	0	0	0	1	0
