From 8f47d82cab39d5517264a4d3378511b9e80a8b70 Mon Sep 17 00:00:00 2001
From: Iacopo Spalletti <i.spalletti@nephila.it>
Date: Sun, 20 Apr 2014 19:50:13 +0200
Subject: [PATCH] Fixed #22478. Use correct module variable in build_tests for
cycle.
---
django/test/simple.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/django/test/simple.py b/django/test/simple.py
index 956294d..9eafaef 100644
a
|
b
|
def build_test(label):
|
181 | 181 | |
182 | 182 | TestClass = None |
183 | 183 | for module in test_modules: |
184 | | TestClass = getattr(models_module, parts[1], None) |
| 184 | TestClass = getattr(module, parts[1], None) |
185 | 185 | if TestClass is not None: |
186 | 186 | break |
187 | 187 | |