diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 33d7b359bd9..813d59fd3c7 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -957,12 +957,15 @@ class UnicodeTest(string_tests.CommonTest, self.assertEqual('{foo._x}'.format_map({'foo': C(20)}), '20') # test various errors - self.assertRaises(TypeError, '{'.format_map) - self.assertRaises(TypeError, '}'.format_map) - self.assertRaises(TypeError, 'a{'.format_map) - self.assertRaises(TypeError, 'a}'.format_map) - self.assertRaises(TypeError, '{a'.format_map) - self.assertRaises(TypeError, '}a'.format_map) + self.assertRaises(TypeError, ''.format_map) + self.assertRaises(TypeError, 'a'.format_map) + + self.assertRaises(ValueError, '{'.format_map, {}) + self.assertRaises(ValueError, '}'.format_map, {}) + self.assertRaises(ValueError, 'a{'.format_map, {}) + self.assertRaises(ValueError, 'a}'.format_map, {}) + self.assertRaises(ValueError, '{a'.format_map, {}) + self.assertRaises(ValueError, '}a'.format_map, {}) # issue #12579: can't supply positional params to format_map self.assertRaises(ValueError, '{}'.format_map, {'a' : 2}) diff --git a/Misc/ACKS b/Misc/ACKS index a0685c1a0fa..061df39a39c 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -602,6 +602,7 @@ Christopher Tur Lesniewski-Laas Alain Leufroy Mark Levinson William Lewis +Akira Li Xuanji Li Robert van Liere Ross Light