Ticket #22478: 0001-Fixed-22478.-Use-correct-module-variable-in-build_te.patch

File 0001-Fixed-22478.-Use-correct-module-variable-in-build_te.patch, 751 bytes (added by Iacopo Spalletti, 11 years ago)

Code fix

  • django/test/simple.py

    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):  
    181181
    182182    TestClass = None
    183183    for module in test_modules:
    184         TestClass = getattr(models_module, parts[1], None)
     184        TestClass = getattr(module, parts[1], None)
    185185        if TestClass is not None:
    186186            break
    187187
Back to Top