Index: tests/test_render_script.py |
=================================================================== |
--- a/tests/test_render_script.py |
+++ b/tests/test_render_script.py |
@@ -24,17 +24,17 @@ |
import os |
import pytest |
import subprocess |
import threading |
try: |
import SimpleHTTPServer |
import SocketServer |
-except: # The modules were renamed/moved in Python 3. |
+except ImportError: # The modules were renamed/moved in Python 3. |
Vasily Kuznetsov
2017/10/24 16:11:00
flake8 started complaining about a bare except --
|
import http.server as SimpleHTTPServer |
import socketserver as SocketServer |
@pytest.fixture |
def rootdir(tmpdir): |
"""Directory with prepared list fragments.""" |
rootdir = tmpdir.join('root') |