Skip to content

Commit

Permalink
TST: GH30999 test commit to run in the CI to figure out the error mes…
Browse files Browse the repository at this point in the history
…sages in test_sql and test_compat
  • Loading branch information
moink committed Jan 1, 2021
1 parent 2b4bcf2 commit 4ef2e57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/computation/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 6 additions & 4 deletions pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 4ef2e57

Please sign in to comment.