Ticket #15638: 15368.diff

File 15368.diff, 748 bytes (added by Chris Beaven, 13 years ago)
  • django/test/simple.py

    diff --git a/django/test/simple.py b/django/test/simple.py
    index c123067..d0b9a70 100644
    a b  
     1import unittest as real_unittest
    12from django.conf import settings
    23from django.core.exceptions import ImproperlyConfigured
    34from django.db.models import get_app, get_apps
    def build_test(label):  
    113114            TestClass = getattr(test_module, parts[1], None)
    114115
    115116    try:
    116         if issubclass(TestClass, unittest.TestCase):
     117        if issubclass(TestClass, (unittest.TestCase, real_unittest.TestCase)):
    117118            if len(parts) == 2: # label is app.TestClass
    118119                try:
    119120                    return unittest.TestLoader().loadTestsFromTestCase(TestClass)
Back to Top