diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-04 10:59:27 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-04 10:59:27 -0500 |
| commit | d6e8d5eddbca7154d008f7ef49efdc62dded7794 (patch) | |
| tree | f535b34e9e7d3210c57c2cd3038070495e731d42 /test/ext/test_associationproxy.py | |
| parent | f3becf64df3937f70c2d0269255d082b27ec4f2d (diff) | |
| download | sqlalchemy-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.py | 7 |
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) |
