summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dict.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-01-25 19:24:46 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-01-25 19:24:46 (GMT)
commit3dbd4c536d685fff0ced7c0aa93d7da2949e8ea0 (patch)
treeb16ccd3cebd37ecfbb250b552de34789b32a7730 /Lib/test/test_dict.py
parent8608d91e07868f14f71be9784149f813ef1b0a74 (diff)
downloadcpython-3dbd4c536d685fff0ced7c0aa93d7da2949e8ea0.zip
cpython-3dbd4c536d685fff0ced7c0aa93d7da2949e8ea0.tar.gz
cpython-3dbd4c536d685fff0ced7c0aa93d7da2949e8ea0.tar.bz2
Changes 54857 and 54840 broke code and were reverted in Py2.5 just before
it was released, but that reversion never made it to the Py2.6 head.
Diffstat (limited to 'Lib/test/test_dict.py')
-rw-r--r--Lib/test/test_dict.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
index b47e43d..4ed76ea 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -200,14 +200,6 @@ class DictTest(unittest.TestCase):
self.assertRaises(ValueError, {}.update, [(1, 2, 3)])
- # SF #1615701: make d.update(m) honor __getitem__() and keys() in dict subclasses
- class KeyUpperDict(dict):
- def __getitem__(self, key):
- return key.upper()
- d.clear()
- d.update(KeyUpperDict.fromkeys('abc'))
- self.assertEqual(d, {'a':'A', 'b':'B', 'c':'C'})
-
def test_fromkeys(self):
self.assertEqual(dict.fromkeys('abc'), {'a':None, 'b':None, 'c':None})
d = {}