1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.

This commit is contained in:
Tim Graham
2017-01-19 12:16:04 -05:00
parent 042b7350a0
commit 7aba69145d
49 changed files with 97 additions and 81 deletions

View File

@@ -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()