work around failing types test
https://bitbucket.org/zzzeek/sqlalchemy/issue/3144
This commit is contained in:
parent
bb517f652c
commit
edb7cf637c
12
python-sqlalchemy-0.9.7-types-test-workaround.patch
Normal file
12
python-sqlalchemy-0.9.7-types-test-workaround.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py.types-test-workaround SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py
|
||||
--- SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py.types-test-workaround 2014-07-22 22:54:20.000000000 +0200
|
||||
+++ SQLAlchemy-0.9.7/lib/sqlalchemy/sql/elements.py 2014-07-29 16:43:27.921221412 +0200
|
||||
@@ -3268,7 +3268,7 @@ class _defer_name(_truncated_label):
|
||||
generation.
|
||||
|
||||
"""
|
||||
- def __new__(cls, value):
|
||||
+ def __new__(cls, value, *rest):
|
||||
if value is None:
|
||||
return _NONE_NAME
|
||||
elif isinstance(value, conv):
|
@ -19,6 +19,9 @@ License: MIT
|
||||
URL: http://www.sqlalchemy.org/
|
||||
Source0: http://pypi.python.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||
Patch0: python-sqlalchemy-0.9.7-nose-use-build.patch
|
||||
# Work around failing types test
|
||||
# https://bitbucket.org/zzzeek/sqlalchemy/issue/3144
|
||||
Patch1: python-sqlalchemy-%{version}-types-test-workaround.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: python2-devel >= 2.6
|
||||
@ -66,6 +69,7 @@ This package includes the python 3 version of the module.
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
%patch0 -p1 -b .nose-use-build
|
||||
%patch1 -p1 -b .types-test-workaround
|
||||
|
||||
%if 0%{?with_python3}
|
||||
rm -rf %{py3dir}
|
||||
|
Loading…
Reference in New Issue
Block a user