We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef83478 commit 65e080fCopy full SHA for 65e080f
pytest_django/django_compat.py
@@ -4,14 +4,11 @@
4
5
def is_django_unittest(request_or_item):
6
"""Returns True if the request_or_item is a Django test case, otherwise False"""
7
- try:
8
- from django.test import SimpleTestCase as TestCase
9
- except ImportError:
10
- from django.test import TestCase
+ from django.test import SimpleTestCase
11
12
cls = getattr(request_or_item, 'cls', None)
13
14
if cls is None:
15
return False
16
17
- return issubclass(cls, TestCase)
+ return issubclass(cls, SimpleTestCase)
0 commit comments