[1.5.x] Fixed test failure under Python 2.x introduced in 3e10d22df5

Backport of ee6824ff459e5cba639bd1be70418ac9194945d4 from master
This commit is contained in:
Luke Plant 2012-10-26 02:45:15 +01:00
parent 0efca2a819
commit f6e2a2b210
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class MultiValueDictTests(SimpleTestCase):
# MultiValueDictKeyError: "Key 'lastname' not found in
# <MultiValueDict: {'position': ['Developer'],
# 'name': ['Adrian', 'Simon']}>"
self.assertRaisesRegex(MultiValueDictKeyError,
six.assertRaisesRegex(self, MultiValueDictKeyError,
r'"Key \'lastname\' not found in <MultiValueDict',
d.__getitem__, 'lastname')