From 4ef2e574f060b539939aecdc3526ccb7edcded04 Mon Sep 17 00:00:00 2001 From: moink Date: Fri, 1 Jan 2021 10:43:44 +0100 Subject: [PATCH 1/2] TST: GH30999 test commit to run in the CI to figure out the error messages in test_sql and test_compat --- pandas/tests/computation/test_compat.py | 5 +++-- pandas/tests/io/test_sql.py | 10 ++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/pandas/tests/computation/test_compat.py b/pandas/tests/computation/test_compat.py index 9fc3ed4800d09..f5103564bb7eb 100644 --- a/pandas/tests/computation/test_compat.py +++ b/pandas/tests/computation/test_compat.py @@ -41,8 +41,9 @@ def testit(): pytest.skip("no numexpr") else: if LooseVersion(ne.__version__) < LooseVersion(VERSIONS["numexpr"]): - with pytest.raises(ImportError): - testit() + # TODO comment this back in once we know the exception message + # with pytest.raises(ImportError): + testit() else: testit() else: diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 52869f3f2fd42..2293e71b2f11c 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -2896,8 +2896,9 @@ def test_execute_fail(self): sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)', self.conn) sql.execute('INSERT INTO test VALUES("foo", "baz", 2.567)', self.conn) - with pytest.raises(Exception): - sql.execute('INSERT INTO test VALUES("foo", "bar", 7)', self.conn) + # TODO comment this back in once we know the exception message + # with pytest.raises(Exception): + sql.execute('INSERT INTO test VALUES("foo", "bar", 7)', self.conn) def test_execute_closed_connection(self, request, datapath): drop_sql = "DROP TABLE IF EXISTS test" @@ -2917,8 +2918,9 @@ def test_execute_closed_connection(self, request, datapath): sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)', self.conn) self.conn.close() - with pytest.raises(Exception): - tquery("select * from test", con=self.conn) + # TODO comment this back in once we know the exception message + # with pytest.raises(Exception): + tquery("select * from test", con=self.conn) # Initialize connection again (needed for tearDown) self.setup_method(request, datapath) From 670630fd56796976746b7a61fa37c001deb42bc0 Mon Sep 17 00:00:00 2001 From: moink Date: Fri, 1 Jan 2021 14:58:44 +0100 Subject: [PATCH 2/2] TST: GH30999 also comment out the pytest.skip --- pandas/tests/io/test_sql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 2293e71b2f11c..16e6ce9389eda 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -2755,9 +2755,9 @@ def clean_up(test_table_to_drop): @pytest.mark.single @pytest.mark.db -@pytest.mark.skip( - reason="gh-13611: there is no support for MySQL if SQLAlchemy is not installed" -) +# @pytest.mark.skip( +# reason="gh-13611: there is no support for MySQL if SQLAlchemy is not installed" +# ) class TestXMySQL(MySQLMixIn): @pytest.fixture(autouse=True, scope="class") def setup_class(cls):