[pypy-commit] pypy default: sometimes sqlite has four verison numbers

bdkearns noreply at buildbot.pypy.org
Tue Apr 16 02:53:08 CEST 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r63399:bee55f6d720e
Date: 2013-04-15 20:52 -0400
http://bitbucket.org/pypy/pypy/changeset/bee55f6d720e/

Log:	sometimes sqlite has four verison numbers

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
@@ -136,7 +136,7 @@
         resource.setrlimit(resource.RLIMIT_NOFILE, limit)
 
 def test_on_conflict_rollback_executemany(con):
-    major, minor, micro = _sqlite3.sqlite_version.split('.')
+    major, minor, micro = _sqlite3.sqlite_version.split('.')[:3]
     if (int(major), int(minor), int(micro)) < (3, 2, 2):
         pytest.skip("requires sqlite3 version >= 3.2.2")
     con.execute("create table foo(x, unique(x) on conflict rollback)")


More information about the pypy-commit mailing list