Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pulsar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NDIP
Pulsar
Commits
5b6039ca
Commit
5b6039ca
authored
11 years ago
by
John Chilton
Browse files
Options
Downloads
Patches
Plain Diff
PEP-8 fixes for previous commit.
parent
47193895
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/client_test.py
+1
-1
1 addition, 1 deletion
test/client_test.py
test/test_utils.py
+1
-1
1 addition, 1 deletion
test/test_utils.py
with
2 additions
and
2 deletions
test/client_test.py
+
1
−
1
View file @
5b6039ca
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
test/test_utils.py
+
1
−
1
View file @
5b6039ca
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment