summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py
index a38eb7f..9777e83 100644
--- a/Lib/test/test_types.py
+++ b/Lib/test/test_types.py
@@ -297,6 +297,10 @@ a *= 0
if a != []:
raise TestFailed, "list inplace repeat"
+a = []
+a[:] = tuple(range(10))
+if a != range(10):
+ raise TestFailed, "assigning tuple to slice"
print '6.5.3a Additional list operations'
a = [0,1,2,3,4]