Skip to content

Commit 28f4f11

Browse files
committed
TST: GH30999 test commit to run in the CI to figure out the error messages in test_sql and test_compat
1 parent 2b4bcf2 commit 28f4f11

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

pandas/tests/computation/test_compat.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ def testit():
4141
pytest.skip("no numexpr")
4242
else:
4343
if LooseVersion(ne.__version__) < LooseVersion(VERSIONS["numexpr"]):
44-
with pytest.raises(ImportError):
45-
testit()
44+
# TODO comment this back in once we know the exception message
45+
# with pytest.raises(ImportError):
46+
testit()
4647
else:
4748
testit()
4849
else:

pandas/tests/io/test_sql.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -2896,8 +2896,9 @@ def test_execute_fail(self):
28962896
sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)', self.conn)
28972897
sql.execute('INSERT INTO test VALUES("foo", "baz", 2.567)', self.conn)
28982898

2899-
with pytest.raises(Exception):
2900-
sql.execute('INSERT INTO test VALUES("foo", "bar", 7)', self.conn)
2899+
# TODO comment this back in once we know the exception message
2900+
# with pytest.raises(Exception):
2901+
sql.execute('INSERT INTO test VALUES("foo", "bar", 7)', self.conn)
29012902

29022903
def test_execute_closed_connection(self, request, datapath):
29032904
drop_sql = "DROP TABLE IF EXISTS test"
@@ -2917,8 +2918,9 @@ def test_execute_closed_connection(self, request, datapath):
29172918
sql.execute('INSERT INTO test VALUES("foo", "bar", 1.234)', self.conn)
29182919
self.conn.close()
29192920

2920-
with pytest.raises(Exception):
2921-
tquery("select * from test", con=self.conn)
2921+
# TODO comment this back in once we know the exception message
2922+
# with pytest.raises(Exception):
2923+
tquery("select * from test", con=self.conn)
29222924

29232925
# Initialize connection again (needed for tearDown)
29242926
self.setup_method(request, datapath)

0 commit comments

Comments
 (0)