Commit 42c2dfe8 authored by Ralf Schmitt's avatar Ralf Schmitt

empty writes also fail

--HG--
extra : transplant_source : %80g7%B3e%22%B9%8F%C3%B5%E1%04%FBNq%E3%B1%C1%13%DE
parent d825f071
......@@ -533,7 +533,14 @@ class TestEmptyYield(TestCase):
garbage = fd.read()
self.assert_(garbage=="", "got garbage: %r" % garbage)
class TestEmptyWrite(TestEmptyYield):
@staticmethod
def application(env, start_response):
write = start_response('200 OK', [('Content-Type', 'text/plain')])
write("")
write("")
return []
class HTTPRequest(urllib2.Request):
"""Hack urllib2.Request to support PUT and DELETE methods."""
......
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