Skip to content

Commit 17696dd

Browse files
committed
finally in test_complex_types
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent f67af96 commit 17696dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/e2e/test_complex_types.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ def table_fixture(self, connection_details):
3939
)
4040
"""
4141
)
42-
yield
43-
# Clean up the table after the test
44-
cursor.execute("DELETE FROM pysql_test_complex_types_table")
42+
try:
43+
yield
44+
finally:
45+
# Clean up the table after the test
46+
cursor.execute("DELETE FROM pysql_test_complex_types_table")
4547

4648
@pytest.mark.parametrize(
4749
"field,expected_type",

0 commit comments

Comments
 (0)