ensure deprecation warning from assertDictContainsSubset points at actual test code (#26497)
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 607c7ae..61003d0 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -1146,7 +1146,8 @@ def assertDictEqual(self, d1, d2, msg=None):
def assertDictContainsSubset(self, subset, dictionary, msg=None):
"""Checks whether dictionary is a superset of subset."""
warnings.warn('assertDictContainsSubset is deprecated',
- DeprecationWarning)
+ DeprecationWarning,
+ stacklevel=2)
missing = []
mismatched = []
for key, value in subset.items():