From eb431e4aa5a0dbf3af73497289aade857cf70233 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 29 Apr 2013 19:49:28 -0400 Subject: Updated mysqlconnector dialect to check for disconnect based on the apparent string message sent in the exception; tested against mysqlconnector 1.0.9. --- test/engine/test_reconnect.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'test/engine') diff --git a/test/engine/test_reconnect.py b/test/engine/test_reconnect.py index 9aecb81a9..b176c05ea 100644 --- a/test/engine/test_reconnect.py +++ b/test/engine/test_reconnect.py @@ -617,19 +617,12 @@ class InvalidateDuringResultTest(fixtures.TestBase): meta.drop_all() engine.dispose() - @testing.fails_on('+cymysql', - "Buffers the result set and doesn't check for " - "connection close") - @testing.fails_on('+pymysql', - "Buffers the result set and doesn't check for " - "connection close") - @testing.fails_on('+mysqldb', - "Buffers the result set and doesn't check for " - "connection close") - @testing.fails_on('+pg8000', - "Buffers the result set and doesn't check for " - "connection close") - @testing.fails_on('+informixdb', + @testing.fails_if([ + '+mysqlconnector', '+mysqldb' + '+cymysql', '+pymysql', '+pg8000' + ], "Buffers the result set and doesn't check for " + "connection close") + @testing.fails_if('+informixdb', "Wrong error thrown, fix in informixdb?") def test_invalidate_on_results(self): conn = engine.connect() -- cgit v1.2.1