diff options
author | Nick Pope <nick.pope@flightdataservices.com> | 2020-05-01 15:54:15 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-04 08:27:18 +0200 |
commit | 8f10ceaa907f3f608494f782f65070d0bb8b9587 (patch) | |
tree | f6ca48e8809f40377fd9b9ac97ef0f48734b1477 /tests/responses | |
parent | 7668f9bce921f66e8e572938154221cd687aaa4a (diff) | |
download | django-8f10ceaa907f3f608494f782f65070d0bb8b9587.tar.gz |
Changed `'%s' % value` pattern to `str(value)`.
Diffstat (limited to 'tests/responses')
-rw-r--r-- | tests/responses/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/responses/tests.py b/tests/responses/tests.py index 934e4dfe60..2c161ee352 100644 --- a/tests/responses/tests.py +++ b/tests/responses/tests.py @@ -145,7 +145,7 @@ class HttpResponseTests(SimpleTestCase): self.assertEqual(r.content, content.encode(UTF8)) def test_generator_cache(self): - generator = ("{}".format(i) for i in range(10)) + generator = (str(i) for i in range(10)) response = HttpResponse(content=generator) self.assertEqual(response.content, b'0123456789') with self.assertRaises(StopIteration): |