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

Unified Diff: tests/test_render_script.py

Issue 29465720: Issue 4970 - Document the library API of python-abp (Closed)
Patch Set: Rebase to match the new master and retouche the docstrings. Created Oct. 24, 2017, 4:06 p.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
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')
« abp/filters/parser.py ('K') | « tests/test_parser.py ('k') | tests/test_web_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld