Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r63000:8fd632265209
Date: 2013-04-04 08:53 +0200
http://bitbucket.org/pypy/pypy/changeset/8fd632265209/
Log: write some tests
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
@@ -196,3 +196,10 @@
con.execute('insert into foo(x) values (?)', 2)
assert str(e.value) == 'parameters are of unsupported type'
con.close()
+
+def test_explicit_begin():
+ con = _sqlite3.connect(':memory:')
+ con.execute('BEGIN')
+ con.commit()
+ con.execute('BEGIN')
+ con.commit()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit