diff --git a/test/integration/regression/test_regression_bug390.py b/test/integration/regression/test_regression_bug390.py new file mode 100644 index 00000000..d0e0ff01 --- /dev/null +++ b/test/integration/regression/test_regression_bug390.py @@ -0,0 +1,21 @@ +from sqlalchemy import create_engine + + +def test_connection_with_block_cleans_up_properly(exasol_config): + config = exasol_config + url = "exa+websocket://{user}:{pw}@{host}:{port}/{schema}?SSLCertificate=SSL_VERIFY_NONE" + url = url.format( + user=config.username, + pw=config.password, + host=config.host, + port=config.port, + schema="TEST", + ) + engine = create_engine(url) + query = "select 42" + expected = [(42,)] + + with engine.connect() as con: + actual = con.execute(query).fetchall() + + assert actual == expected