Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
232bcec4
Commit
232bcec4
authored
Apr 09, 2014
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #407 from fantix/pep8
Fix pep8
parents
f80c056b
33838671
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
.pep8
.pep8
+1
-1
greentest/test__subprocess.py
greentest/test__subprocess.py
+25
-25
No files found.
.pep8
View file @
232bcec4
[pep8]
ignore=E702
ignore=E702
,E265
max_line_length=160
exclude=.git,build,2.6,2.7,3.3,test_support.py,test_queue.py,patched_tests_setup.py,test_threading_2.py,lock_tests.py
greentest/test__subprocess.py
View file @
232bcec4
...
...
@@ -47,9 +47,9 @@ class Test(greentest.TestCase):
def
test_communicate
(
self
):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
'import sys,os;'
'sys.stderr.write("pineapple");'
'sys.stdout.write(sys.stdin.read())'
],
'import sys,os;'
'sys.stderr.write("pineapple");'
'sys.stdout.write(sys.stdin.read())'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
...
...
@@ -62,18 +62,18 @@ class Test(greentest.TestCase):
def
test_universal1
(
self
):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
'import sys,os;'
+
SETBINARY
+
'sys.stdout.write("line1
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line2
\
\
r");'
'sys.stdout.flush();'
'sys.stdout.write("line3
\
\
r
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line4
\
\
r");'
'sys.stdout.flush();'
'sys.stdout.write("
\
\
nline5");'
'sys.stdout.flush();'
'sys.stdout.write("
\
\
nline6");'
],
'import sys,os;'
+
SETBINARY
+
'sys.stdout.write("line1
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line2
\
\
r");'
'sys.stdout.flush();'
'sys.stdout.write("line3
\
\
r
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line4
\
\
r");'
'sys.stdout.flush();'
'sys.stdout.write("
\
\
nline5");'
'sys.stdout.flush();'
'sys.stdout.write("
\
\
nline6");'
],
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
1
)
try
:
...
...
@@ -91,16 +91,16 @@ class Test(greentest.TestCase):
def
test_universal2
(
self
):
p
=
subprocess
.
Popen
([
sys
.
executable
,
"-c"
,
'import sys,os;'
+
SETBINARY
+
'sys.stdout.write("line1
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line2
\
\
r");'
'sys.stdout.flush();'
'sys.stdout.write("line3
\
\
r
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line4
\
\
r
\
\
nline5");'
'sys.stdout.flush();'
'sys.stdout.write("
\
\
nline6");'
],
'import sys,os;'
+
SETBINARY
+
'sys.stdout.write("line1
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line2
\
\
r");'
'sys.stdout.flush();'
'sys.stdout.write("line3
\
\
r
\
\
n");'
'sys.stdout.flush();'
'sys.stdout.write("line4
\
\
r
\
\
nline5");'
'sys.stdout.flush();'
'sys.stdout.write("
\
\
nline6");'
],
stdout
=
subprocess
.
PIPE
,
universal_newlines
=
1
)
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment