Commit 47d345fe authored by Florian Apolloner's avatar Florian Apolloner
Browse files

[1.7.x] Restored Python 2 compatibility.

Backport of ee51ab9d from master.
parent 099625d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ class FormsTestCase(TestCase):
        self.assertHTMLEqual(str(p['birthday']), '<input type="text" name="birthday" value="1940-10-9" id="id_birthday" />')

        nonexistenterror = "Key u?'nonexistentfield' not found in 'Person'"
        with self.assertRaisesRegex(KeyError, nonexistenterror):
        with six.assertRaisesRegex(self, KeyError, nonexistenterror):
            p['nonexistentfield']
            self.fail('Attempts to access non-existent fields should fail.')