Author: Brian Kearns <[email protected]>
Branch:
Changeset: r60926:b6d2a9b0bcc0
Date: 2013-02-05 17:45 -0500
http://bitbucket.org/pypy/pypy/changeset/b6d2a9b0bcc0/
Log: this should always import lib_pypy's sqlite3, never the host's
(transplanted from 9e7230d8f10c39195ff46b9950be20e7d026f320)
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
@@ -2,7 +2,7 @@
def test_list_ddl():
"""From issue996. Mostly just looking for lack of exceptions."""
- from sqlite3.dbapi2 import connect
+ from lib_pypy._sqlite3 import connect
connection = connect(':memory:')
cursor = connection.cursor()
cursor.execute('CREATE TABLE foo (bar INTEGER)')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit