[pypy-commit] pypy default: remove test of cursor.__del__
bdkearns
noreply at buildbot.pypy.org
Thu Apr 4 19:49:19 CEST 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r63012:0bf476dc4617
Date: 2013-04-04 13:48 -0400
http://bitbucket.org/pypy/pypy/changeset/0bf476dc4617/
Log: remove test of cursor.__del__
diff --git a/pypy/module/test_lib_pypy/test_sqlite3.py b/pypy/module/test_lib_pypy/test_sqlite3.py
--- a/pypy/module/test_lib_pypy/test_sqlite3.py
+++ b/pypy/module/test_lib_pypy/test_sqlite3.py
@@ -96,18 +96,6 @@
pytest.raises(_sqlite3.ProgrammingError, "cur.executemany(1,2,3,4,5)")
@pytest.mark.skipif("not hasattr(sys, 'pypy_translation_info')")
-def test_cursor_del():
- con = _sqlite3.connect(':memory:')
- cur = con.execute('select 1')
- stmt = cur._Cursor__statement
- cur.close()
- cur = con.execute('select 1')
- assert cur._Cursor__statement is stmt
- del cur; import gc; gc.collect(); gc.collect()
- cur = con.execute('select 1')
- assert cur._Cursor__statement is stmt
-
- at pytest.mark.skipif("not hasattr(sys, 'pypy_translation_info')")
def test_connection_del(tmpdir):
"""For issue1325."""
import os
More information about the pypy-commit
mailing list