summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-11-10 22:12:08 -0500
committerTim Graham <timograham@gmail.com>2016-11-10 22:20:09 -0500
commit7b05ffd95d2ab8c6653ce4efc49658efb79965c8 (patch)
tree0a0e2bba160ff5a4a0dea8544e631398ddb5fa9e /tests
parent321e94fa41b121f65c02119c02098df327bbd569 (diff)
Removed a bit of builtin_server tests for Python ≤ 2.7.3.
Diffstat (limited to 'tests')
-rw-r--r--tests/builtin_server/tests.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/builtin_server/tests.py b/tests/builtin_server/tests.py
index e7ba4272b8..14253f70a4 100644
--- a/tests/builtin_server/tests.py
+++ b/tests/builtin_server/tests.py
@@ -39,17 +39,6 @@ class ServerHandler(simple_server.ServerHandler, object):
super(ServerHandler, self).error_output(environ, start_response)
return ['\n'.join(traceback.format_exception(*sys.exc_info()))]
- # Backport of http://hg.python.org/cpython/rev/d5af1b235dab. See #16241.
- # This can be removed when support for Python <= 2.7.3 is deprecated.
- def finish_response(self):
- try:
- if not self.result_is_file() or not self.sendfile():
- for data in self.result:
- self.write(data)
- self.finish_content()
- finally:
- self.close()
-
class DummyHandler(object):
def log_request(self, *args, **kwargs):