Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_render_script.py

Issue 29992563: Noissue - Work around N812 and E117 from flake8 update (Closed) Base URL: https://hg.adblockplus.org/python-abp
Patch Set: Ignore errors instead of working around the linter, avoid E117 Created Jan. 30, 2019, 10:41 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« abp/filters/rpy.py ('K') | « abp/filters/rpy.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_render_script.py
===================================================================
--- a/tests/test_render_script.py
+++ b/tests/test_render_script.py
@@ -25,18 +25,18 @@
import pytest
import subprocess
import threading
try:
import SimpleHTTPServer
import SocketServer
except ImportError: # The modules were renamed/moved in Python 3.
- import http.server as SimpleHTTPServer
- import socketserver as SocketServer
+ from http import server as SimpleHTTPServer # noqa: N812
+ import socketserver as SocketServer # noqa: N812
@pytest.fixture
def rootdir(tmpdir):
"""Directory with prepared list fragments."""
rootdir = tmpdir.join('root')
rootdir.mkdir()
# Simple file with just `Ok` and a non-ascii unicode character in it.
« abp/filters/rpy.py ('K') | « abp/filters/rpy.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld