1From e600d12980ccb807ba1ca3fb6a4da1d0b89c02f6 Mon Sep 17 00:00:00 2001
2From: Robert Collins <robertc@robertcollins.net>
3Date: Wed, 1 Jul 2015 15:46:28 +1200
4Subject: [PATCH] Fix tests with unittest2 1.1.0 and higher.
5
6Change-Id: I4613d47852fbf901819f197f6e388ccaa717b53e
7---
8 testtools/tests/test_run.py | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/testtools/tests/test_run.py b/testtools/tests/test_run.py
12index ead716b..433b6f8 100644
13--- a/testtools/tests/test_run.py
14+++ b/testtools/tests/test_run.py
15@@ -201,6 +201,7 @@ def test_run_list_failed_import(self):
16 run.main, ['prog', 'discover', '-l', broken.package.base, '*.py'], out)
17 self.assertEqual(2, exc.args[0])
18 self.assertThat(out.getvalue(), DocTestMatches("""\
19+unittest2.loader._FailedTest.runexample
20 Failed to import test module: runexample
21 Traceback (most recent call last):
22 File ".../loader.py", line ..., in _find_test_path