Skip to content

Commit

Permalink
Update test/integration/http_transport_errors_test.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Pirkl <[email protected]>
  • Loading branch information
Nicoretti and kaklakariada authored Jul 9, 2024
1 parent abdde9b commit 866b84a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/integration/http_transport_errors_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,9 @@ def test_error_in_export_callback(connection, statement):
def export_cb(pipe, dst, **kwargs):
raise Exception(error_msg)

with pytest.raises(Exception) as exec_info:
with pytest.raises(Exception, matches=error_msg):
connection.export_to_callback(export_cb, None, statement)

expected = error_msg
actual = f"{exec_info.value}"

assert actual == expected


@pytest.mark.etl
@pytest.mark.exceptions
Expand Down

0 comments on commit 866b84a

Please sign in to comment.