Skip to content
Snippets Groups Projects
Commit 5b6039ca authored by John Chilton's avatar John Chilton
Browse files

PEP-8 fixes for previous commit.

parent 47193895
No related branches found
No related tags found
No related merge requests found
...@@ -180,7 +180,7 @@ def test_download_output(): ...@@ -180,7 +180,7 @@ def test_download_output():
client.expect_open(request_checker, b"test output contents") client.expect_open(request_checker, b"test output contents")
client.fetch_output(temp_file.name, ".") client.fetch_output(temp_file.name, ".")
with open(temp_file.name, "r") as f: with open(temp_file.name, "r") as f:
contents = f.read(1024) contents = f.read(1024)
assert contents == "test output contents", "Unxpected contents %s" % contents assert contents == "test output contents", "Unxpected contents %s" % contents
......
...@@ -104,7 +104,7 @@ def test_server(global_conf={}, app_conf={}, test_conf={}): ...@@ -104,7 +104,7 @@ def test_server(global_conf={}, app_conf={}, test_conf={}):
from paste.exceptions.errormiddleware import ErrorMiddleware from paste.exceptions.errormiddleware import ErrorMiddleware
error_app = ErrorMiddleware(app.app, debug=True, error_log="errors") error_app = ErrorMiddleware(app.app, debug=True, error_log="errors")
except ImportError: except ImportError:
# paste.exceptions not available for Python 3. # paste.exceptions not available for Python 3.
error_app = app error_app = app
server = StopableWSGIServer.create(error_app) server = StopableWSGIServer.create(error_app)
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment