From 59cf3db674413c5f0b11175791e524847c09ac19 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 26 Apr 2010 22:26:44 +0200 Subject: [PATCH] Fix test failure. --- sphinx/domains/__init__.py | 2 +- tests/test_rst_domain.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sphinx/domains/__init__.py b/sphinx/domains/__init__.py index ad4a206d6..64306b706 100644 --- a/sphinx/domains/__init__.py +++ b/sphinx/domains/__init__.py @@ -250,5 +250,5 @@ BUILTIN_DOMAINS = { 'c': CDomain, 'cpp': CPPDomain, 'js': JavaScriptDomain, - 'rst': ReSTDomain + 'rst': ReSTDomain, } diff --git a/tests/test_rst_domain.py b/tests/test_rst_domain.py index 2b07a3fe9..10617095d 100644 --- a/tests/test_rst_domain.py +++ b/tests/test_rst_domain.py @@ -13,14 +13,14 @@ from sphinx.domains.rst import parse_directive def test_parse_directive(): - s = parse_directive(' foö ') - assert s == ('foö', '') + s = parse_directive(u' foö ') + assert s == (u'foö', '') - s = parse_directive(' .. foö :: ') - assert s == ('foö', '') + s = parse_directive(u' .. foö :: ') + assert s == (u'foö', ' ') - s = parse_directive('.. foö:: args1 args2') - assert s == ('foö', 'args1 args2') + s = parse_directive(u'.. foö:: args1 args2') + assert s == (u'foö', ' args1 args2') s = parse_directive('.. :: bar') assert s == ('.. :: bar', '')