Commits

Brian Kearns committed 3dd4799

call con.close() to cleanup after test

Comments (0)

Files changed (1)

pypy/module/test_lib_pypy/test_sqlite3.py

         con.commit()
     except _sqlite3.OperationalError:
         pytest.fail("_sqlite3 knew nothing about the implicit ROLLBACK")
+    con.close()
 
 def test_statement_arg_checking():
     con = _sqlite3.connect(':memory:')
     with pytest.raises(ValueError) as e:
         con.execute('insert into foo(x) values (?)', 2)
     assert str(e.value) == 'parameters are of unsupported type'
+    con.close()