summaryrefslogtreecommitdiff
path: root/tests/utils_tests
diff options
context:
space:
mode:
authorJaap Roes <jaap@eight.nl>2014-10-10 12:40:13 +0200
committerTim Graham <timograham@gmail.com>2014-10-10 09:22:20 -0400
commit115c307184d441fbc27a8f43a99af5d992cfcc13 (patch)
tree33aaeef0e690508e080157f4add6e7af567fe6e3 /tests/utils_tests
parent1b5918f160365b97986f21da1a7c35ffd2d5b0b0 (diff)
Fixed #23613 -- Deprecated django.utils.checksums
Diffstat (limited to 'tests/utils_tests')
-rw-r--r--tests/utils_tests/test_checksums.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/utils_tests/test_checksums.py b/tests/utils_tests/test_checksums.py
index 9c9f244b6c..0302956014 100644
--- a/tests/utils_tests/test_checksums.py
+++ b/tests/utils_tests/test_checksums.py
@@ -1,6 +1,13 @@
import unittest
+import warnings
-from django.utils import checksums
+from django.utils.deprecation import RemovedInDjango20Warning
+
+with warnings.catch_warnings():
+ warnings.filterwarnings(
+ 'ignore', 'django.utils.checksums will be removed in Django 2.0.',
+ RemovedInDjango20Warning)
+ from django.utils import checksums
class TestUtilsChecksums(unittest.TestCase):