From 67582d2beee2fd67f18ec7cc9797c3b76342e510 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 21 Feb 2007 21:57:55 +0000 Subject: [PATCH] Fix test_os from breakage due to dict views. --- BROKEN | 1 - Lib/test/mapping_tests.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/BROKEN b/BROKEN index 034cd851ff0..2967871269c 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 09e9dcbe421..77d66b20629 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)