summaryrefslogtreecommitdiff
path: root/test/sql/test_selectable.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_selectable.py')
-rw-r--r--test/sql/test_selectable.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py
index bbf7eeab1..35d5a0b05 100644
--- a/test/sql/test_selectable.py
+++ b/test/sql/test_selectable.py
@@ -1277,6 +1277,13 @@ class AnnotationsTest(fixtures.TestBase):
assert x_p.compare(x_p_a)
assert not x_p_a.compare(x_a)
+ def test_late_name_add(self):
+ from sqlalchemy.schema import Column
+ c1 = Column(Integer)
+ c1_a = c1._annotate({"foo": "bar"})
+ c1.name = 'somename'
+ eq_(c1_a.name, 'somename')
+
def test_custom_constructions(self):
from sqlalchemy.schema import Column
class MyColumn(Column):