https://github.com/testing-cabal/testtools/commit/29004731f9c480b7c44a9c2605513d50d372898f.patch Should be fixed in the next release From 29004731f9c480b7c44a9c2605513d50d372898f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 17 May 2018 17:52:26 +0200 Subject: [PATCH] Fix the tests on Python 3.7 Exception's repr got changed not to include trailing comma Fixes https://github.com/testing-cabal/testtools/issues/270 --- .travis.yml | 1 + testtools/tests/matchers/test_exception.py | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7f1f4db7..784608e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ python: - "3.4" - "3.5" - "3.6" + - "3.7-dev" - "pypy" install: diff --git a/testtools/tests/matchers/test_exception.py b/testtools/tests/matchers/test_exception.py index 6cd80af1..acd39252 100644 --- a/testtools/tests/matchers/test_exception.py +++ b/testtools/tests/matchers/test_exception.py @@ -32,15 +32,22 @@ class TestMatchesExceptionInstanceInterface(TestCase, TestMatchersInterface): matches_matches = [error_foo] matches_mismatches = [error_bar, error_base_foo] + if sys.version_info >= (3, 7): + # exception's repr has changed + _e = '' + else: + _e = ',' + str_examples = [ - ("MatchesException(Exception('foo',))", + ("MatchesException(Exception('foo'%s))" % _e, MatchesException(Exception('foo'))) ] describe_examples = [ ("%r is not a %r" % (Exception, ValueError), error_base_foo, MatchesException(ValueError("foo"))), - ("ValueError('bar',) has different arguments to ValueError('foo',).", + ("ValueError('bar'%s) has different arguments to ValueError('foo'%s)." + % (_e, _e), error_bar, MatchesException(ValueError("foo"))), ] value='search'/>
path: root/gnu/packages/avahi.scm
AgeCommit message (Expand)Author
2018-05-01gnu: nss-mdns: Update to 0.14.1....* gnu/packages/avahi.scm (nss-mdns): Update to 0.14.1. [source](patches): Remove. [arguments]: Remove #:phases, add #:configure-flags. Ludovic Courtès
2018-03-18gnu: nss-mdns: Adjust Avahi socket file name....Fixes <https://bugs.gnu.org/30613>. Regression introduced in 550f4509acf2c0f67882260414b0bb2843e07465. Reported by George myglc2 Clemmer <myglc2@gmail.com>. * gnu/packages/avahi.scm (nss-mdns)[arguments]: Remove #:configure-flags. Add #:phases. Ludovic Courtès
2018-02-16Merge branch 'master' into core-updatesMark H Weaver
2018-02-15gnu: nss-mdns: Update to 0.12.0....* gnu/packages/avahi.scm (nss-mdns): Update to 0.12 + patch. (nss-mdns-0.10.0): Remove. * gnu/services/avahi.scm (avahi-service-type): Use NSS-MDNS again. Ludovic Courtès
2018-02-11Merge branch 'master' into core-updatesMark H Weaver
2018-02-09services: avahi: Default to nss-mdns 0.10....This works around <https://bugs.gnu.org/30396>. Reported by George myglc2 Clemmer <myglc2@gmail.com>. * gnu/packages/avahi.scm (nss-mdns-0.10): New variable. * gnu/services/avahi.scm (avahi-service-type): Use it. Ludovic Courtès
2018-01-26Merge branch 'master' into core-updatesMark H Weaver
2018-01-26gnu: nss-mdns: Improve synopsis and description....* gnu/packages/avahi.scm (nss-mdns)[synopis, description]: Edit to appease ‘guix lint’ and, I hope, be a bit more clear. Tobias Geerinckx-Rice
2018-01-26gnu: nss-mdns: Update to 0.11....* gnu/packages/avahi.scm (nss-mdns): Update to 0.11 [source, home-page]: Use new project URI. Tobias Geerinckx-Rice
2017-11-02gnu: avahi: Update to 0.7....* gnu/packages/avahi.scm (avahi): Update to 0.7. * gnu/packages/patches/avahi-localstatedir.patch: Adjust context. Marius Bakke