From 3f7beb99dd456dd2b8de45a5cb0e1afdf228a262 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Thu, 10 Jan 2013 20:18:21 -0500 Subject: #13934: document sqlite version strings, use correct one in test. --- Lib/sqlite3/test/hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/sqlite3/test') diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index a92e838786..0ec3b43c7b 100644 --- a/Lib/sqlite3/test/hooks.py +++ b/Lib/sqlite3/test/hooks.py @@ -47,9 +47,9 @@ class CollationTests(unittest.TestCase): except sqlite.ProgrammingError as e: pass + @unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 1), + 'old SQLite versions crash on this test') def CheckCollationIsUsed(self): - if sqlite.version_info < (3, 2, 1): # old SQLite versions crash on this test - return def mycoll(x, y): # reverse order return -((x > y) - (x < y)) -- cgit v1.2.1