qcodes/tests/dataset/test_sqlite_base.py
def shadow_conn(path_to_db: str):
    """
    Simple context manager to create a connection for testing and
    close it on exit
    """
    conn = mut_db.connect(path_to_db)
    yield conn
    conn.close()

    Simple context manager to create a connection for testing and
    close it on exit
    
Simple context manager to create a connection for testing and
close it on exit
Simple context manager to create a connection for testing and close it on exit
def shadow_conn(path_to_db: str):
    conn = mut_db.connect(path_to_db)
    yield conn
    conn.close()
def shadow_conn ( path_to_db : str ) : conn = mut_db . connect ( path_to_db ) yield conn conn . close ( )
Simple context manager to create a connection for testing and
close it on exit
Simple context manager to create a connection for testing and close it on exit
"""
    Simple context manager to create a connection for testing and
    close it on exit
    """
path_to_db
str