diff options
author | farcepest <farcepest@gmail.com> | 2012-10-17 18:30:19 -0400 |
---|---|---|
committer | farcepest <farcepest@gmail.com> | 2012-10-17 18:30:19 -0400 |
commit | 369810dff7d2e9d7371776f9dc58cedf5b794567 (patch) | |
tree | ce854a998ea449cef7acb900d83d3c0f6935b892 /tests | |
parent | c9b282f8b5f7595e7dc3c92b8964a423ba0fabdb (diff) | |
download | mysqldb1-369810dff7d2e9d7371776f9dc58cedf5b794567.tar.gz |
PyPy fixes, and probably some reference issues for CPython too.
Derived from a patch at https://bitbucket.org/pypy/compatibility/wiki/edit/mysql-python
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_MySQLdb_capabilities.py | 2 | ||||
-rw-r--r-- | tests/test_MySQLdb_dbapi20.py | 2 | ||||
-rw-r--r-- | tests/test_MySQLdb_nonstandard.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_MySQLdb_capabilities.py b/tests/test_MySQLdb_capabilities.py index 60bbfad..ebec1e6 100644 --- a/tests/test_MySQLdb_capabilities.py +++ b/tests/test_MySQLdb_capabilities.py @@ -4,7 +4,7 @@ import unittest import MySQLdb
import warnings
-warnings.filterwarnings('error')
+warnings.filterwarnings('ignore')
class test_MySQLdb(capabilities.DatabaseTest):
diff --git a/tests/test_MySQLdb_dbapi20.py b/tests/test_MySQLdb_dbapi20.py index 44830e0..2832e32 100644 --- a/tests/test_MySQLdb_dbapi20.py +++ b/tests/test_MySQLdb_dbapi20.py @@ -3,6 +3,8 @@ import dbapi20 import unittest
import MySQLdb
from configdb import connection_kwargs
+import warnings
+warnings.simplefilter("ignore")
class test_MySQLdb(dbapi20.DatabaseAPI20Test):
driver = MySQLdb
diff --git a/tests/test_MySQLdb_nonstandard.py b/tests/test_MySQLdb_nonstandard.py index 92fcbdc..a5c0e84 100644 --- a/tests/test_MySQLdb_nonstandard.py +++ b/tests/test_MySQLdb_nonstandard.py @@ -4,7 +4,8 @@ import _mysql import MySQLdb from MySQLdb.constants import FIELD_TYPE from configdb import connection_factory - +import warnings +warnings.simplefilter("ignore") class TestDBAPISet(unittest.TestCase): def test_set_equality(self): |