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:
23
pull-request-91.patch
Normal file
23
pull-request-91.patch
Normal 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(
|
||||
Reference in New Issue
Block a user