]> granicus.if.org Git - python/commit
Prevent test_sqlite from hanging on older versions of sqlite.
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 5 Apr 2008 04:26:31 +0000 (04:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 5 Apr 2008 04:26:31 +0000 (04:26 +0000)
commit8510195ceb394efc3379dce32f2fe064daa823a4
treea1e8bc0e1e488d095396a472b2967d09968d8376
parentb2ff8a7b0d2dbe88f934911d916d3dbd990a549a
Prevent test_sqlite from hanging on older versions of sqlite.
The problem is that when trying to do the second insert, sqlite seems to sleep
for a very long time.  Here is the output from strace:

  read(6, "SQLite format 3\0\4\0\1\1\0@  \0\0\0\1\0\0\0\0"..., 1024) = 1024
  nanosleep({4294, 966296000},  <unfinished ...>

I don't know which version this was fixed in, but 3.2.1 definitely fails.
Lib/sqlite3/test/transactions.py