diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-08-03 02:38:00 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-08-03 02:38:00 +0000 |
commit | b8588ef4f76c9d0104bfc53b7af1f99386be4d4c (patch) | |
tree | 1d887aa7c677d45ac2d9ddd143f47f119cbf5af3 /test/orm/session.py | |
parent | 90b2a57056f06dc14652517e331cb2609479dbc8 (diff) | |
download | sqlalchemy-b8588ef4f76c9d0104bfc53b7af1f99386be4d4c.tar.gz |
- Dialects can be queried for the server version (sqlite and mysql only with this commit)
- Mark everything in a test suite as failed when setUpAll fails.
- Added test coverage for Unicode table names in metadata.reflect()
- @testing.exclude() filters out tests by server version
- Applied exclude to the test suite, MySQL 4.1 passes again (no XA or SAVEPOINT)
- Removed MySQL charset-setting pool hook- charset=utf8&use_unicode=0 works just as well. (Am I nuts? I'd swear this didn't work before.)
- Finally migrated some old MySQL-tests into the dialect test module
- Corrected 'commit' and 'rollback' logic (and comment) for ancient MySQL versions lacking transactions entirely
- Deprecated the MySQL get_version_info in favor of server_version_info
- Added a big hunk-o-doc for MySQL.
Diffstat (limited to 'test/orm/session.py')
-rw-r--r-- | test/orm/session.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/orm/session.py b/test/orm/session.py index 230be907e..d3eed5c57 100644 --- a/test/orm/session.py +++ b/test/orm/session.py @@ -207,6 +207,7 @@ class SessionTest(AssertMixin): raise @testing.supported('postgres', 'mysql') + @testing.exclude('mysql', '<', (5, 0, 3)) def test_twophase(self): # TODO: mock up a failure condition here # to ensure a rollback succeeds @@ -230,8 +231,6 @@ class SessionTest(AssertMixin): assert users.count().scalar() == 1 assert addresses.count().scalar() == 1 - - def test_joined_transaction(self): class User(object):pass mapper(User, users) @@ -245,6 +244,7 @@ class SessionTest(AssertMixin): assert len(sess.query(User).select()) == 0 @testing.supported('postgres', 'mysql') + @testing.exclude('mysql', '<', (5, 0, 3)) def test_nested_transaction(self): class User(object):pass mapper(User, users) @@ -267,6 +267,7 @@ class SessionTest(AssertMixin): assert len(sess.query(User).select()) == 1 @testing.supported('postgres', 'mysql') + @testing.exclude('mysql', '<', (5, 0, 3)) def test_nested_autotrans(self): class User(object):pass mapper(User, users) |