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. |