python/python-2.7.6-sqlite-3.8.4-tests.patch

31 lines
1.3 KiB
Diff

From: Benjamin Peterson <benjamin@python.org>
Date: Wed, 12 Mar 2014 21:51:52 -0500
Subject: [PATCH] weaken callback count inequality (closes #20901)
Upstream: committed
References: https://bugzilla.novell.com/show_bug.cgi?id=867887 http://bugs.python.org/issue20901 http://hg.python.org/cpython/rev/1763e27a182d
Fixes test failures with SQLite 3.8.4
[ 296s] test test_sqlite failed -- Traceback (most recent call last):
[ 296s] File "/home/abuild/rpmbuild/BUILD/Python-2.7.6/Lib/sqlite3/test/hooks.py", line 165, in CheckOpcodeCount
[ 296s] self.assertTrue(first_count > second_count)
[ 296s] AssertionError: False is not true
---
Lib/sqlite3/test/hooks.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: Python-2.7.6/Lib/sqlite3/test/hooks.py
===================================================================
--- Python-2.7.6.orig/Lib/sqlite3/test/hooks.py 2014-03-14 20:32:55.000000000 +0000
+++ Python-2.7.6/Lib/sqlite3/test/hooks.py 2014-03-14 20:34:07.000000000 +0000
@@ -162,7 +162,7 @@ class ProgressTests(unittest.TestCase):
create table bar (a, b)
""")
second_count = len(progress_calls)
- self.assertTrue(first_count > second_count)
+ self.assertTrue(first_count >= second_count)
def CheckCancelOperation(self):
"""