fix test_order_by_nulls error

This commit is contained in:
sxt1001 2020-12-03 19:28:57 +08:00
parent 987408cdcd
commit 3fb068db77
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From 8b35ba54ab31aab13a34c360a31d014da1f5c809 Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@tiptoe.de>
Date: Thu, 17 Oct 2019 18:22:09 +0200
Subject: [PATCH] Expect ordering NULLs to work on sqlite >= 3.30.
Signed-off-by: Nils Philippsen <nils@tiptoe.de>
---
test/requirements.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/requirements.py b/test/requirements.py
index 5906432..deb4ced 100644
--- a/test/requirements.py
+++ b/test/requirements.py
@@ -727,7 +727,8 @@ class DefaultRequirements(SuiteRequirements):
@property
def nullsordering(self):
"""Target backends that support nulls ordering."""
- return fails_on_everything_except("postgresql", "oracle", "firebird")
+ return fails_on_everything_except("postgresql", "oracle", "firebird",
+ "sqlite >= 3.30.0")
@property
def reflects_pk_names(self):
--
2.19.1

View File

@ -2,12 +2,14 @@
Name: python-sqlalchemy
Version: 1.2.19
Release: 1
Release: 2
Summary: SQL toolkit and object relational mapper for Python
License: MIT
URL: http://www.sqlalchemy.org/
Source0: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
Patch1: Expect_ordering_NULLs_to_work.patch
BuildRequires: python2-devel >= 2.6 python2-setuptools python2-mock python2-pytest
BuildRequires: python3-devel python3-setuptools python3-pytest
@ -87,6 +89,9 @@ PYTHONPATH=. %{__python3} -m pytest test
%doc doc examples
%changelog
* Thu Dec 03 2020 shixuantong <shixuantong@huawei> - 1.2.19-2
- fix test_order_by_nulls error
* Mon Aug 31 2020 pengyeqing <pengyeqing@huawei.com> - 1.2.19-1
- update to 1.2.19