15
0
forked from pool/python-pecan

Accepting request 518558 from home:tbechtold:branches:devel:languages:python

- Add pull-request-91.patch . That fixes the tests for python3.6

OBS-URL: https://build.opensuse.org/request/show/518558
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pecan?expand=0&rev=38
This commit is contained in:
2017-08-24 15:34:01 +00:00
committed by Git OBS Bridge
parent 57ddbb62b9
commit 9072fe76cb
3 changed files with 31 additions and 0 deletions

23
pull-request-91.patch Normal file
View File

@@ -0,0 +1,23 @@
From b45975931bba9808fe88f6931fcdeeb3d201cda8 Mon Sep 17 00:00:00 2001
From: Ryan Petrello <lists@ryanpetrello.com>
Date: Mon, 7 Aug 2017 22:19:49 -0400
Subject: [PATCH] fix broken py36 tests
---
.travis.yml | 6 ++++--
pecan/tests/test_conf.py | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
Index: pecan-1.2.1/pecan/tests/test_conf.py
===================================================================
--- pecan-1.2.1.orig/pecan/tests/test_conf.py
+++ pecan-1.2.1/pecan/tests/test_conf.py
@@ -157,7 +157,7 @@ class TestConf(PecanTestCase):
try:
configuration.conf_from_file(f.name)
- except (ValueError, SystemError) as e:
+ except (ValueError, SystemError, ImportError) as e:
assert 'relative import' in str(e)
else:
raise AssertionError(

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 24 15:31:13 UTC 2017 - tbechtold@suse.com
- Add pull-request-91.patch . That fixes the tests for python3.6
-------------------------------------------------------------------
Wed Jul 12 06:00:37 UTC 2017 - tbechtold@suse.com

View File

@@ -25,6 +25,8 @@ License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://github.com/dreamhost/pecan
Source: https://files.pythonhosted.org/packages/source/p/pecan/pecan-%{version}.tar.gz
# # PATCH-FIX-UPSTREAM pull-request-91.patch -- https://github.com/pecan/pecan/pull/91
Patch1: pull-request-91.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
@@ -70,6 +72,7 @@ A WSGI object-dispatching web framework, designed to be lean and fast with few d
%setup -q -n pecan-%{version}
# Let's not depend on Kajiki, a Genshi clone. Genshi should be enough:
sed -i "/'Kajiki',/d" setup.py
%patch1 -p1
%build
%python_build