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.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py
index e3508f77d..66053b794 100644
--- a/test/sql/test_selectable.py
+++ b/test/sql/test_selectable.py
@@ -545,19 +545,18 @@ class SelectableTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiled
eq_(c1._label, "t1_c1")
class AnonLabelTest(fixtures.TestBase):
- """Test behaviors that we hope to change with [ticket:2168]."""
+ """Test behaviors fixed by [ticket:2168]."""
def test_anon_labels_named_column(self):
c1 = column('x')
- # surprising
- assert c1.label(None) is c1
- eq_(str(select([c1.label(None)])), "SELECT x")
+ assert c1.label(None) is not c1
+ eq_(str(select([c1.label(None)])), "SELECT x AS x_1")
def test_anon_labels_literal_column(self):
c1 = literal_column('x')
- assert c1.label(None) is c1
- eq_(str(select([c1.label(None)])), "SELECT x")
+ assert c1.label(None) is not c1
+ eq_(str(select([c1.label(None)])), "SELECT x AS x_1")
def test_anon_labels_func(self):
c1 = func.count('*')