From ab078e9ed1a5d1b693d6ee843f1a34e8993e9dee Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 13 Jul 2016 21:13:29 -0700 Subject: Backed out changeset af29d89083b3 (closes #25548) (closes #27498) --- Lib/test/test_pprint.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Lib/test/test_pprint.py') diff --git a/Lib/test/test_pprint.py b/Lib/test/test_pprint.py index 2283923cee..7ebc298337 100644 --- a/Lib/test/test_pprint.py +++ b/Lib/test/test_pprint.py @@ -848,11 +848,12 @@ bytearray(b'\\x00\\x01\\x02\\x03' def test_default_dict(self): d = collections.defaultdict(int) - self.assertRegex(pprint.pformat(d, width=1), r"defaultdict\(, {}\)") + self.assertEqual(pprint.pformat(d, width=1), "defaultdict(, {})") words = 'the quick brown fox jumped over a lazy dog'.split() d = collections.defaultdict(int, zip(words, itertools.count())) - self.assertRegex(pprint.pformat(d), -r"""defaultdict\(, + self.assertEqual(pprint.pformat(d), +"""\ +defaultdict(, {'a': 6, 'brown': 2, 'dog': 8, @@ -861,7 +862,7 @@ r"""defaultdict\(, 'lazy': 7, 'over': 5, 'quick': 1, - 'the': 0}\)""") + 'the': 0})""") def test_counter(self): d = collections.Counter() -- cgit v1.2.1