diff --git a/tests/test_dbapi_persistence.py b/tests/test_dbapi_persistence.py index 5775340e5a5..ebd21dc0c2e 100644 --- a/tests/test_dbapi_persistence.py +++ b/tests/test_dbapi_persistence.py @@ -8,7 +8,7 @@ class TestDBAPIPersistence(unittest.TestCase): def test_persistence(self): conn = dbapi.connect(path=test_state_dir) - cur = con.cursor() + cur = conn.cursor() cur.execute("CREATE DATABASE e ENGINE = Atomic;") cur.execute("CREATE TABLE e.hi (a String primary key, b Int32) Engine = MergeTree ORDER BY a;") cur.execute("INSERT INTO e.hi (a, b) VALUES (%s, %s);", ["he", 32]) @@ -24,4 +24,4 @@ def test_persistence(self): if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()