Commit a29b0e4f authored by Denis Bilenko's avatar Denis Bilenko

test__pywsgi.py: use 2.4-compatible syntax

--HG--
extra : transplant_source : i%9B%F8%D0%AB.%9F%02%9A%A4%2C%B1M%0C%B0%CC%03%12.%E2
parent 6b826131
......@@ -656,7 +656,10 @@ class TestEmptyYield(TestCase):
fd = self.connect().makefile(bufsize=1)
fd.write('GET / HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n')
chunks = [] if server_implements_chunked else False
if server_implements_chunked:
chunks = []
else:
chunks = False
read_http(fd, body='', chunks=chunks)
......@@ -676,7 +679,10 @@ class TestFirstEmptyYield(TestCase):
fd = self.connect().makefile(bufsize=1)
fd.write('GET / HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n')
chunks = ['hello'] if server_implements_chunked else False
if server_implements_chunked:
chunks = ['hello']
else:
chunks = False
read_http(fd, body='hello', chunks=chunks)
......
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