From: Brett Cannon Date: Wed, 21 Feb 2007 21:57:55 +0000 (+0000) Subject: Fix test_os from breakage due to dict views. X-Git-Tag: v3.0a1~1209 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67582d2beee2fd67f18ec7cc9797c3b76342e510;p=thirdparty%2FPython%2Fcpython.git Fix test_os from breakage due to dict views. --- diff --git a/BROKEN b/BROKEN index 034cd851ff04..2967871269c5 100644 --- a/BROKEN +++ b/BROKEN @@ -1,3 +1,2 @@ test_bsddb test_bsddb3 test_compile test_dumbdbm test_importhooks test_iter test_iterlen test_minidom test_mutants - test_os diff --git a/Lib/test/mapping_tests.py b/Lib/test/mapping_tests.py index 09e9dcbe4213..77d66b206296 100644 --- a/Lib/test/mapping_tests.py +++ b/Lib/test/mapping_tests.py @@ -101,7 +101,7 @@ class BasicTestMappingProtocol(unittest.TestCase): #update p.update(self.reference) self.assertEqual(dict(p), self.reference) - items = p.items() + items = list(p.items()) p = self._empty_mapping() p.update(items) self.assertEqual(dict(p), self.reference)