mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-15 03:00:29 +00:00
New test requires Python v3.
This commit is contained in:
parent
3842ef8792
commit
4ce0afcd6f
1 changed files with 4 additions and 0 deletions
4
tests.py
4
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(
|
||||
|
|
Loading…
Reference in a new issue