summaryrefslogtreecommitdiff
path: root/test/ext/test_associationproxy.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-03-04 10:59:27 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-03-04 10:59:27 -0500
commitd6e8d5eddbca7154d008f7ef49efdc62dded7794 (patch)
treef535b34e9e7d3210c57c2cd3038070495e731d42 /test/ext/test_associationproxy.py
parentf3becf64df3937f70c2d0269255d082b27ec4f2d (diff)
downloadsqlalchemy-d6e8d5eddbca7154d008f7ef49efdc62dded7794.tar.gz
- Fixed bug in association proxy where assigning an empty slice
(e.g. ``x[:] = [...]``) would fail on Py3k.
Diffstat (limited to 'test/ext/test_associationproxy.py')
-rw-r--r--test/ext/test_associationproxy.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ext/test_associationproxy.py b/test/ext/test_associationproxy.py
index 487850601..6a4de0f74 100644
--- a/test/ext/test_associationproxy.py
+++ b/test/ext/test_associationproxy.py
@@ -212,6 +212,13 @@ class _CollectionOperations(fixtures.TestBase):
self.assert_(p1.children == after)
self.assert_([c.name for c in p1._children] == after)
+ p1.children[:] = ['d', 'e']
+ after = ['d', 'e']
+ self.assert_(p1.children == after)
+ self.assert_([c.name for c in p1._children] == after)
+
+ p1.children[:] = ['a', 'b']
+
p1.children += ['c']
after = ['a', 'b', 'c']
self.assert_(p1.children == after)