New test requires Python v3.

This commit is contained in:
Christopher Wolfe 2019-01-09 16:16:48 -05:00
parent 3842ef8792
commit 4ce0afcd6f

View file

@ -2,6 +2,8 @@ import io
import json
import logging
import os
import sys
import unittest
import uuid
from tornado import httpclient, httputil, testing, web
@ -415,6 +417,8 @@ class MixinTestCase(testing.AsyncHTTPTestCase):
self.assertEqual(client.max_clients, 25)
@testing.gen_test()
@unittest.skipUnless(sys.version_info >= (3, ),
'StringIO requires Python 3')
def test_missing_content_type(self):
# Craft a response that lacks a Content-Type header.
request = httpclient.HTTPRequest(