diff options
| author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-29 11:46:47 +0900 |
|---|---|---|
| committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-29 11:46:47 +0900 |
| commit | 68290a266cea33cf0b60bed425b5e89d1032e7d1 (patch) | |
| tree | 629a54150044a6d588bcf8e740e13d65c50178ee /tests/test_websupport.py | |
| parent | 1e4b390b226c856d8c80d1d9857696b7fbcd2580 (diff) | |
| download | sphinx-git-68290a266cea33cf0b60bed425b5e89d1032e7d1.tar.gz | |
introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350.
Diffstat (limited to 'tests/test_websupport.py')
| -rw-r--r-- | tests/test_websupport.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_websupport.py b/tests/test_websupport.py index bcb756755..7c7a4f0f3 100644 --- a/tests/test_websupport.py +++ b/tests/test_websupport.py @@ -10,9 +10,10 @@ """ import os -from StringIO import StringIO from functools import wraps +import six + from sphinx.websupport import WebSupport from sphinx.websupport.errors import DocumentNotFoundError, \ CommentNotAllowedError, UserNotAuthorizedError @@ -30,8 +31,8 @@ from util import test_root, raises, skip_if default_settings = {'builddir': os.path.join(test_root, 'websupport'), - 'status': StringIO(), - 'warning': StringIO()} + 'status': six.StringIO(), + 'warning': six.StringIO()} def teardown_module(): (test_root / 'generated').rmtree(True) |
