summaryrefslogtreecommitdiff
path: root/tests/regressiontests/utils
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-12-25 21:07:27 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-12-29 21:59:07 +0100
commitef017a5f00d9e84059e00e8fea123be51b293f75 (patch)
treeff0bf6ebfb015465e1ceee3d2551f1c7a200d07f /tests/regressiontests/utils
parent130829334c32f48b9ba6e6251d0e780c0d99cd4d (diff)
Advanced pending deprecation warnings.
Also added stacklevel argument, fixed #18127.
Diffstat (limited to 'tests/regressiontests/utils')
-rw-r--r--tests/regressiontests/utils/datastructures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/utils/datastructures.py b/tests/regressiontests/utils/datastructures.py
index f65fc5c770..3161c04f97 100644
--- a/tests/regressiontests/utils/datastructures.py
+++ b/tests/regressiontests/utils/datastructures.py
@@ -139,14 +139,14 @@ class SortedDictTests(SimpleTestCase):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
d.insert(0, "hello", "world")
- assert w[0].category is PendingDeprecationWarning
+ assert w[0].category is DeprecationWarning
def test_value_for_index(self):
d = SortedDict({"a": 3})
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
self.assertEqual(d.value_for_index(0), 3)
- assert w[0].category is PendingDeprecationWarning
+ assert w[0].category is DeprecationWarning
class MergeDictTests(SimpleTestCase):