<filename>pypy/module/test_lib_pypy/test_sqlite3.py
"""Tests for _sqlite3.py"""

def test_list_ddl():
    """From issue996.  Mostly just looking for lack of exceptions."""
    from sqlite3.dbapi2 import connect
    connection = connect(':memory:')
    cursor = connection.cursor()
    cursor.execute('CREATE TABLE foo (bar INTEGER)')
    result = list(cursor)
    assert result == []

<filename>pypy/module/test_lib_pypy/test_sqlite3.py
"""Tests for _sqlite3.py"""

def test_list_ddl():
    """From issue996.  Mostly just looking for lack of exceptions."""
    from sqlite3.dbapi2 import connect
    connection = connect(':memory:')
    cursor = connection.cursor()
    cursor.execute('CREATE TABLE foo (bar INTEGER)')
    result = list(cursor)
    assert result == []

Tests for _sqlite3.py From issue996.  Mostly just looking for lack of exceptions.