mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
This commit is contained in:
parent
042b7350a0
commit
7aba69145d
49 changed files with 97 additions and 81 deletions
|
@ -2,6 +2,7 @@ import datetime
|
|||
import itertools
|
||||
import unittest
|
||||
from copy import copy
|
||||
from unittest import mock
|
||||
|
||||
from django.db import (
|
||||
DatabaseError, IntegrityError, OperationalError, connection,
|
||||
|
@ -19,7 +20,7 @@ from django.db.models.fields.related import (
|
|||
from django.db.models.indexes import Index
|
||||
from django.db.transaction import TransactionManagementError, atomic
|
||||
from django.test import (
|
||||
TransactionTestCase, mock, skipIfDBFeature, skipUnlessDBFeature,
|
||||
TransactionTestCase, skipIfDBFeature, skipUnlessDBFeature,
|
||||
)
|
||||
from django.test.utils import CaptureQueriesContext
|
||||
from django.utils import timezone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue