work around failing types test

https://bitbucket.org/zzzeek/sqlalchemy/issue/3144
This commit is contained in:
Nils Philippsen 2014-07-29 16:47:21 +02:00
parent bb517f652c
commit edb7cf637c
2 changed files with 16 additions and 0 deletions

View 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):

View File

@ -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}