diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-18 18:11:12 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-18 18:11:12 +0000 |
| commit | d76dc73f33b6607b3805dc0efa29a98057afdb55 (patch) | |
| tree | 2e626930b332f8e8d3ba60facf5fa420d9534e4e /test/sql | |
| parent | be5d3263436b81fb179c8189f1064d477d5fb3e6 (diff) | |
| download | sqlalchemy-d76dc73f33b6607b3805dc0efa29a98057afdb55.tar.gz | |
merge the test/ directory from -r5438:5439 of py3k_warnings branch. this gives
us a 2.5-frozen copy of unittest so we're insulated from unittest changes.
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/alltests.py | 2 | ||||
| -rw-r--r-- | test/sql/generative.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/sql/alltests.py b/test/sql/alltests.py index 173b04632..f01b0e620 100644 --- a/test/sql/alltests.py +++ b/test/sql/alltests.py @@ -1,5 +1,5 @@ import testenv; testenv.configure_for_tests() -import unittest +from testlib import sa_unittest as unittest def suite(): diff --git a/test/sql/generative.py b/test/sql/generative.py index daa2432da..39a72d89b 100644 --- a/test/sql/generative.py +++ b/test/sql/generative.py @@ -26,6 +26,8 @@ class TraversalTest(TestBase, AssertsExecutionResults): def is_other(self, other): return other is self + __hash__ = ClauseElement.__hash__ + def __eq__(self, other): return other.expr == self.expr @@ -49,6 +51,8 @@ class TraversalTest(TestBase, AssertsExecutionResults): return False return True + __hash__ = ClauseElement.__hash__ + def __eq__(self, other): for i1, i2 in zip(self.items, other.items): if i1 != i2: |
