summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2016-09-20 11:55:19 -0400
committerGerrit Code Review <gerrit2@ln3.zzzcomputing.com>2016-09-20 11:55:19 -0400
commitb9a7a74d5e729408fcac86fe2919aa423c59d863 (patch)
tree78b7d2eba89f93faeaf9ea083863e39644188545 /test/sql
parentdea7c2bd8e7e852b6a41d6e0ec3af35f33917a70 (diff)
parent2c4119d1eb9e231676bf4facedf46849970b8253 (diff)
downloadsqlalchemy-b9a7a74d5e729408fcac86fe2919aa423c59d863.tar.gz
Merge "Exclude eq and ne from associative operators"
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_operators.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py
index b6e80de4b..99f8a10ca 100644
--- a/test/sql/test_operators.py
+++ b/test/sql/test_operators.py
@@ -1538,6 +1538,14 @@ class OperatorAssociativityTest(fixtures.TestBase, testing.AssertsCompiledSQL):
f = column('f')
self.assert_compile(f / (f / (f - f)), "f / (f / (f - f))")
+ def test_associativity_22(self):
+ f = column('f')
+ self.assert_compile((f==f) == f, '(f = f) = f')
+
+ def test_associativity_23(self):
+ f = column('f')
+ self.assert_compile((f!=f) != f, '(f != f) != f')
+
class IsDistinctFromTest(fixtures.TestBase, testing.AssertsCompiledSQL):
__dialect__ = 'default'