From 4ce0afcd6f43b8ee44f8a7d5792b15cd36e07579 Mon Sep 17 00:00:00 2001 From: Christopher Wolfe Date: Wed, 9 Jan 2019 16:16:48 -0500 Subject: [PATCH] New test requires Python v3. --- tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests.py b/tests.py index 6b88cab..4ea4998 100644 --- a/tests.py +++ b/tests.py @@ -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(