diff options
| author | Jonathan Lange <jml@mumak.net> | 2015-12-23 12:41:39 +0000 |
|---|---|---|
| committer | Jonathan Lange <jml@mumak.net> | 2015-12-23 12:41:39 +0000 |
| commit | edd036cb2a52de797678eae6849daf5ab67c581d (patch) | |
| tree | 97fd3353cf882c4d473814faa74212f9999cec08 | |
| parent | 04422a5e36e50607f8bf495f48665bfafe23733e (diff) | |
| download | testtools-edd036cb2a52de797678eae6849daf5ab67c581d.tar.gz | |
Deterministic test
| -rw-r--r-- | testtools/tests/test_testsuite.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testtools/tests/test_testsuite.py b/testtools/tests/test_testsuite.py index 4c323a5..02dda70 100644 --- a/testtools/tests/test_testsuite.py +++ b/testtools/tests/test_testsuite.py @@ -1,10 +1,9 @@ -# Copyright (c) 2009-2011 testtools developers. See LICENSE for details. +# Copyright (c) 2009-2015 testtools developers. See LICENSE for details. """Test ConcurrentTestSuite and related things.""" -__metaclass__ = type - import doctest +from pprint import pformat import unittest import unittest2 @@ -333,7 +332,8 @@ class TestSortedTests(TestCase): ValueError, sorted_tests, unittest.TestSuite([a, b, c, d])) self.assertThat( str(error), - Equals("Duplicate test ids detected: {'a': 2, 'b': 2}")) + Equals("Duplicate test ids detected: %s" % ( + pformat({'a': 2, 'b': 2}),))) def test_suite(): |
