~ruther/guix-local

ref: b88e1b0a626aa434e3934732392140dc9e919dd6 guix-local/gnu/packages/patches/python2-sqlite-3.8.4-test-fix.patch -rw-r--r-- 536 bytes
b88e1b0a — Eric Bavier gnu: python: Add sqlite input. 11 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
From resolution of upstream python issue #20901: http://bugs.python.org/issue20901

diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
--- Lib/sqlite3/test/hooks.py
+++ Lib/sqlite3/test/hooks.py
@@ -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.assertGreaterEqual(first_count, second_count)
 
     def CheckCancelOperation(self):
         """