Kaydet (Commit) ec784c48 authored tarafından Tim Graham's avatar Tim Graham

Silenced deprecation warnings in SortedDict tests; refs [07876cf0]

üst 7b04038a
...@@ -6,13 +6,15 @@ import copy ...@@ -6,13 +6,15 @@ import copy
import pickle import pickle
from django.test import SimpleTestCase from django.test import SimpleTestCase
from django.test.utils import IgnorePendingDeprecationWarningsMixin
from django.utils.datastructures import (DictWrapper, ImmutableList, from django.utils.datastructures import (DictWrapper, ImmutableList,
MultiValueDict, MultiValueDictKeyError, MergeDict, SortedDict) MultiValueDict, MultiValueDictKeyError, MergeDict, SortedDict)
from django.utils import six from django.utils import six
class SortedDictTests(SimpleTestCase): class SortedDictTests(IgnorePendingDeprecationWarningsMixin, SimpleTestCase):
def setUp(self): def setUp(self):
super(SortedDictTests, self).setUp()
self.d1 = SortedDict() self.d1 = SortedDict()
self.d1[7] = 'seven' self.d1[7] = 'seven'
self.d1[1] = 'one' self.d1[1] = 'one'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment