From 1a33896b71dcbdcc6d83d4f012587c028fa83864 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Thu, 18 Sep 2003 17:46:43 +0000 Subject: [PATCH] Avoid consequential failures from __setslice__ with non-iterable value [SVN r1565] --- .../boost/python/suite/indexing/vector_indexing_suite.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/python/suite/indexing/vector_indexing_suite.py b/include/boost/python/suite/indexing/vector_indexing_suite.py index 1905d7df..9394319a 100755 --- a/include/boost/python/suite/indexing/vector_indexing_suite.py +++ b/include/boost/python/suite/indexing/vector_indexing_suite.py @@ -131,6 +131,13 @@ reset >>> print_xvec(v) [ a z d e ] +##################################################################### +# Slice: replace [:] with correct result of previous test +##################################################################### +>>> v[:] = [ 'a', 'z', 'd', 'e' ] +>>> print_xvec(v) +[ a z d e ] + ##################################################################### # Slice: replace [0:2] with a list #####################################################################