mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-22 03:34:24 +03:00
Supress new flake8 error
This commit is contained in:
parent
282120ba44
commit
ae5dc5f070
|
|
@ -39,7 +39,7 @@ class TestLazyHyperlinkNames(TestCase):
|
|||
self.example = Example.objects.create(text='foo')
|
||||
|
||||
def test_lazy_hyperlink_names(self):
|
||||
global str_called
|
||||
global str_called # noqa: F824
|
||||
context = {'request': None}
|
||||
serializer = ExampleSerializer(self.example, context=context)
|
||||
JSONRenderer().render(serializer.data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user