diff options
| author | Tim Graham <timograham@gmail.com> | 2017-01-19 12:16:04 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-20 08:17:20 -0500 |
| commit | 7aba69145dcb436539a7798086748b73a39121e5 (patch) | |
| tree | 8f1f4edeec13f02916366e8c961c3028ec0b6560 /tests/sitemaps_tests | |
| parent | 042b7350a080cc964f913faf1cf7f0097f650a58 (diff) | |
Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.
Diffstat (limited to 'tests/sitemaps_tests')
| -rw-r--r-- | tests/sitemaps_tests/test_management.py | 3 | ||||
| -rw-r--r-- | tests/sitemaps_tests/test_utils.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/sitemaps_tests/test_management.py b/tests/sitemaps_tests/test_management.py index 459a1d1b3c..f0be10224b 100644 --- a/tests/sitemaps_tests/test_management.py +++ b/tests/sitemaps_tests/test_management.py @@ -1,5 +1,6 @@ +from unittest import mock + from django.core.management import call_command -from django.test import mock from .base import SitemapTestsBase diff --git a/tests/sitemaps_tests/test_utils.py b/tests/sitemaps_tests/test_utils.py index dc4d6511f3..158f1625ce 100644 --- a/tests/sitemaps_tests/test_utils.py +++ b/tests/sitemaps_tests/test_utils.py @@ -1,10 +1,11 @@ +from unittest import mock from urllib.parse import urlencode from django.contrib.sitemaps import ( SitemapNotFound, _get_sitemap_full_url, ping_google, ) from django.core.exceptions import ImproperlyConfigured -from django.test import mock, modify_settings, override_settings +from django.test import modify_settings, override_settings from .base import SitemapTestsBase |
