summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/test/testing.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-09-24 02:11:56 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2009-09-24 02:11:56 +0000
commit5a9c1b8824bb84aaf8baccdfa2780a94af5c0f44 (patch)
treeabb0eed7f59567b73b0087d2f1e68c89254f7d2a /lib/sqlalchemy/test/testing.py
parent79ce8e89bd0537d26c8c3594557b2aa4c67f8f90 (diff)
downloadsqlalchemy-5a9c1b8824bb84aaf8baccdfa2780a94af5c0f44.tar.gz
merge from branches/clauseelement-nonzero
adds a __nonzero__ to _BinaryExpression to avoid faulty comparisons during hash collisions (which only occur on Jython) fixes #1547
Diffstat (limited to 'lib/sqlalchemy/test/testing.py')
-rw-r--r--lib/sqlalchemy/test/testing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/test/testing.py b/lib/sqlalchemy/test/testing.py
index 374217f9c..317e3946b 100644
--- a/lib/sqlalchemy/test/testing.py
+++ b/lib/sqlalchemy/test/testing.py
@@ -649,7 +649,7 @@ class ComparesTables(object):
assert len(table.primary_key) == len(reflected_table.primary_key)
for c in table.primary_key:
- assert reflected_table.primary_key.columns[c.name]
+ assert reflected_table.primary_key.columns[c.name] is not None
def assert_types_base(self, c1, c2):
base_mro = sqltypes.TypeEngine.__mro__