gitweb: Fix flake8 error that is causing pipeline failures

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2020-01-02 17:49:02 -08:00
parent 018767aaae
commit 9e166f799c
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -55,7 +55,7 @@ EXISTING_REPOS = [
def fixture_gitweb_urls():
"""Make sure gitweb app's URLs are part of plinth.urls."""
with patch('plinth.module_loader._modules_to_load', new=[]) as modules, \
patch('plinth.urls.urlpatterns', new=[]):
patch('plinth.urls.urlpatterns', new=[]):
modules.append('plinth.modules.gitweb')
module_loader.include_urls()
yield