mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user