Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67582d2

Browse files
committed
Fix test_os from breakage due to dict views.
1 parent b38e2bc commit 67582d2

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

BROKEN

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
test_bsddb test_bsddb3 test_compile test_dumbdbm
22
test_importhooks test_iter test_iterlen test_minidom test_mutants
3-
test_os

Lib/test/mapping_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def test_write(self):
101101
#update
102102
p.update(self.reference)
103103
self.assertEqual(dict(p), self.reference)
104-
items = p.items()
104+
items = list(p.items())
105105
p = self._empty_mapping()
106106
p.update(items)
107107
self.assertEqual(dict(p), self.reference)

0 commit comments

Comments
 (0)