diff options
author | shimizukawa <shimizukawa@gmail.com> | 2014-12-04 17:26:13 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2014-12-04 17:26:13 +0900 |
commit | 09ff186e77557424e8c0b544c81bed2e7e1a22e4 (patch) | |
tree | 8fbfe43808e8e24928e578affc53d7d5c7308547 | |
parent | 2a6747eb115232d910acd1a49bb3ede66343aa70 (diff) | |
download | sphinx-09ff186e77557424e8c0b544c81bed2e7e1a22e4.tar.gz |
fix py3 error for pull request #314
-rw-r--r-- | tests/test_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index e48079e3..db5a9560 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -164,7 +164,8 @@ def test_gen_check_types(): msg = ("WARNING: the config value %r has type `%s'," " defaults to `%s.'\n" % (key, real, deftype.__name__)) def test(): - assert (msg in warning.buflist) == should, \ + warning_list = warning.getvalue() + assert (msg in warning_list) == should, \ "Setting %s to %r should%s raise: %s" % \ (key, value, " not" if should else "", msg) test.description = "test_check_type_%s_on_%s" % \ |