Fix tests with SQLite >= 3.8.4

This commit is contained in:
Matej Stuchlik 2014-05-29 11:44:25 +02:00
parent 71a2caf4ec
commit c623e79ad9
2 changed files with 25 additions and 1 deletions

View File

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

View File

@ -126,7 +126,7 @@
Summary: Version 3 of the Python programming language aka Python 3000
Name: python3
Version: %{pybasever}.2
Release: 12%{?dist}
Release: 13%{?dist}
License: Python
Group: Development/Languages
@ -629,6 +629,13 @@ Patch186: 00186-dont-raise-from-py_compile.patch
# See http://bugs.python.org/issue17997#msg194950 for more.
Patch187: 00187-change-match_hostname-to-follow-RFC-6125.patch
# 00190 #
#
# Fix tests with SQLite >= 3.8.4
# http://bugs.python.org/issue20901
# http://hg.python.org/cpython/rev/4d626a9df062
Patch190: 00190-fix-tests-with-sqlite-3.8.4.patch
# 00192 #
#
# Fixing buffer overflow (upstream patch)
@ -905,6 +912,7 @@ done
%patch185 -p1
%patch186 -p1
%patch187 -p1
%patch190 -p1
%patch192 -p1
%patch193 -p1
@ -1763,6 +1771,9 @@ rm -fr %{buildroot}
# ======================================================
%changelog
* Thu May 29 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.3.2-13
- Fix tests with SQLite >= 3.8.4
* Thu May 29 2014 Miro Hrončok <mhroncok@redhat.com> - 3.3.2-12
- Fix multilib dependencies.
- Rename python3.Xm-config script to arch specific.