Skip to content

Commit 1a8bfe2

Browse files
committed
Remove BaseDatabaseWrapper from compat
1 parent 39b1e13 commit 1a8bfe2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pytest_django/compat.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# This file cannot be imported from until Django sets up
2-
from django.db.backends.base.base import BaseDatabaseWrapper
3-
42
try:
53
# Django 1.11
64
from django.test.utils import setup_databases, teardown_databases # noqa

pytest_django/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def __init__(self):
600600

601601
@property
602602
def _dj_db_wrapper(self):
603-
from .compat import BaseDatabaseWrapper
603+
from django.db.backends.base.base import BaseDatabaseWrapper
604604

605605
# The first time the _dj_db_wrapper is accessed, we will save a
606606
# reference to the real implementation.

0 commit comments

Comments
 (0)