Commit 232bcec4 authored by Denis Bilenko's avatar Denis Bilenko

Merge pull request #407 from fantix/pep8

Fix pep8
parents f80c056b 33838671
[pep8] [pep8]
ignore=E702 ignore=E702,E265
max_line_length=160 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 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
...@@ -47,9 +47,9 @@ class Test(greentest.TestCase): ...@@ -47,9 +47,9 @@ class Test(greentest.TestCase):
def test_communicate(self): def test_communicate(self):
p = subprocess.Popen([sys.executable, "-c", p = subprocess.Popen([sys.executable, "-c",
'import sys,os;' 'import sys,os;'
'sys.stderr.write("pineapple");' 'sys.stderr.write("pineapple");'
'sys.stdout.write(sys.stdin.read())'], 'sys.stdout.write(sys.stdin.read())'],
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
...@@ -62,18 +62,18 @@ class Test(greentest.TestCase): ...@@ -62,18 +62,18 @@ class Test(greentest.TestCase):
def test_universal1(self): def test_universal1(self):
p = subprocess.Popen([sys.executable, "-c", p = subprocess.Popen([sys.executable, "-c",
'import sys,os;' + SETBINARY + 'import sys,os;' + SETBINARY +
'sys.stdout.write("line1\\n");' 'sys.stdout.write("line1\\n");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("line2\\r");' 'sys.stdout.write("line2\\r");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("line3\\r\\n");' 'sys.stdout.write("line3\\r\\n");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("line4\\r");' 'sys.stdout.write("line4\\r");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("\\nline5");' 'sys.stdout.write("\\nline5");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("\\nline6");'], 'sys.stdout.write("\\nline6");'],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
universal_newlines=1) universal_newlines=1)
try: try:
...@@ -91,16 +91,16 @@ class Test(greentest.TestCase): ...@@ -91,16 +91,16 @@ class Test(greentest.TestCase):
def test_universal2(self): def test_universal2(self):
p = subprocess.Popen([sys.executable, "-c", p = subprocess.Popen([sys.executable, "-c",
'import sys,os;' + SETBINARY + 'import sys,os;' + SETBINARY +
'sys.stdout.write("line1\\n");' 'sys.stdout.write("line1\\n");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("line2\\r");' 'sys.stdout.write("line2\\r");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("line3\\r\\n");' 'sys.stdout.write("line3\\r\\n");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("line4\\r\\nline5");' 'sys.stdout.write("line4\\r\\nline5");'
'sys.stdout.flush();' 'sys.stdout.flush();'
'sys.stdout.write("\\nline6");'], 'sys.stdout.write("\\nline6");'],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
universal_newlines=1) universal_newlines=1)
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment