summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/test/simple.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/test/simple.py b/django/test/simple.py
index c1230678a7..d0b9a70257 100644
--- a/django/test/simple.py
+++ b/django/test/simple.py
@@ -1,3 +1,4 @@
+import unittest as real_unittest
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.models import get_app, get_apps
@@ -113,7 +114,7 @@ def build_test(label):
TestClass = getattr(test_module, parts[1], None)
try:
- if issubclass(TestClass, unittest.TestCase):
+ if issubclass(TestClass, (unittest.TestCase, real_unittest.TestCase)):
if len(parts) == 2: # label is app.TestClass
try:
return unittest.TestLoader().loadTestsFromTestCase(TestClass)