diff options
author | Roman Podolyaka <roman.podolyaka@gmail.com> | 2013-06-22 13:35:41 +0300 |
---|---|---|
committer | Roman Podolyaka <roman.podolyaka@gmail.com> | 2013-06-23 10:35:46 +0300 |
commit | 90296229209104e3903358844c2fbcd565d71bf3 (patch) | |
tree | 8dac29c376f5e654f485cccf0ee58c9ea928a127 | |
parent | eba9d1b58f38577fb71d3374a2133d6e9159c277 (diff) | |
download | sqlalchemy-90296229209104e3903358844c2fbcd565d71bf3.tar.gz |
Improve _test_get_unique_constraints()
Call eq_() in a loop instead of comparing two lists
directly. This makes it much easier to find out which
element is not equal to the reference value.
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_reflection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_reflection.py b/lib/sqlalchemy/testing/suite/test_reflection.py index 858ca8a77..16061780e 100644 --- a/lib/sqlalchemy/testing/suite/test_reflection.py +++ b/lib/sqlalchemy/testing/suite/test_reflection.py @@ -396,7 +396,8 @@ class ComponentReflectionTest(fixtures.TablesTest): key=operator.itemgetter('name') ) - eq_(uniques, reflected) + for orig, refl in zip(uniques, reflected): + eq_(orig, refl) @testing.provide_metadata |