mirror of
https://github.com/django/django.git
synced 2025-07-23 13:15:32 +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
|
@ -1,3 +1,5 @@
|
|||
from unittest import mock
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
try:
|
||||
|
@ -6,7 +8,6 @@ try:
|
|||
TrigramExtension, UnaccentExtension,
|
||||
)
|
||||
except ImportError:
|
||||
from django.test import mock
|
||||
BtreeGinExtension = mock.Mock()
|
||||
CreateExtension = mock.Mock()
|
||||
HStoreExtension = mock.Mock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue