diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-25 16:39:44 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-25 16:39:44 -0400 |
| commit | fe878f5aff1cb17fdf1f13aba1d13f008da0ef4e (patch) | |
| tree | 27a1efb8d5a127b8a64efeffd1ed909fd06a941b /test/engine | |
| parent | 3c0efe508f4b02ca69db1f4855f5bfeb936ac9e9 (diff) | |
| download | sqlalchemy-fe878f5aff1cb17fdf1f13aba1d13f008da0ef4e.tar.gz | |
- more pg8000 tests passing
Diffstat (limited to 'test/engine')
| -rw-r--r-- | test/engine/test_ddlevents.py | 3 | ||||
| -rw-r--r-- | test/engine/test_pool.py | 2 | ||||
| -rw-r--r-- | test/engine/test_reconnect.py | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/engine/test_ddlevents.py b/test/engine/test_ddlevents.py index b3f73f6b1..0d828b340 100644 --- a/test/engine/test_ddlevents.py +++ b/test/engine/test_ddlevents.py @@ -461,12 +461,11 @@ class DDLExecutionTest(fixtures.TestBase): r = eval(py) assert list(r) == [(1,)], py - @testing.fails_on('postgresql+pg8000', 'pg8000 requires explicit types') def test_platform_escape(self): """test the escaping of % characters in the DDL construct.""" default_from = testing.db.dialect.statement_compiler( - testing.db.dialect, None).default_from() + testing.db.dialect, None).default_from() # We're abusing the DDL() # construct here by pushing a SELECT through it diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py index a9e650cca..29f369753 100644 --- a/test/engine/test_pool.py +++ b/test/engine/test_pool.py @@ -101,6 +101,7 @@ class PoolTest(PoolTestBase): @testing.fails_on('+pyodbc', "pyodbc cursor doesn't implement tuple __eq__") + @testing.fails_on("+pg8000", "returns [1], not (1,)") def test_cursor_iterable(self): conn = testing.db.raw_connection() cursor = conn.cursor() @@ -109,7 +110,6 @@ class PoolTest(PoolTestBase): for row in cursor: eq_(row, expected.pop(0)) - def test_no_connect_on_recreate(self): def creator(): raise Exception("no creates allowed") diff --git a/test/engine/test_reconnect.py b/test/engine/test_reconnect.py index e6897b13d..f92b874da 100644 --- a/test/engine/test_reconnect.py +++ b/test/engine/test_reconnect.py @@ -444,7 +444,6 @@ class CursorErrTest(fixtures.TestBase): ) - def _assert_invalidated(fn, *args): try: fn(*args) @@ -453,8 +452,10 @@ def _assert_invalidated(fn, *args): if not e.connection_invalidated: raise + class RealReconnectTest(fixtures.TestBase): __backend__ = True + __requires__ = 'graceful_disconnects', def setup(self): self.engine = engines.reconnecting_engine() |
