forked from pool/python-pecan
24 lines
869 B
Diff
24 lines
869 B
Diff
|
|
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(
|