Skip to content

Commit 3c4db4e

Browse files
committed
Add failing test for issue #50: list(list([1, 2, 3])) != [1, 2, 3]
1 parent ec10cf6 commit 3c4db4e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

future/tests/test_list.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ def test_list_list(self):
3333
self.assertEqual(list(list()), [])
3434
self.assertTrue(isinstance(list(list()), list))
3535

36+
def test_list_list2(self):
37+
"""
38+
Issue #50
39+
"""
40+
l = list([1, 2, 3])
41+
l2 = list(l)
42+
self.assertEqual(len(l2), 3)
43+
self.assertEqual(l2, [1, 2, 3])
44+
3645
def test_list_equal(self):
3746
l = [1, 3, 5]
3847
self.assertEqual(list(l), l)

0 commit comments

Comments
 (0)