Commit bc7a219b authored by Julien Phalip's avatar Julien Phalip
Browse files

Fixed Python 3.2 compatibility for a test.

parent 293f7a21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -810,7 +810,7 @@ class RequestMethodStringDataTests(TestCase):
    def test_patch(self):
        "Request a view with string data via request method PATCH"
        # Regression test for #17797
        data = u'{"test": "json"}'
        data = '{"test": "json"}'
        response = self.client.patch('/test_client_regress/request_methods/', data=data, content_type='application/json')
        self.assertEqual(response.status_code, 200)
        self.assertEqual(response.content, b'request method: PATCH')