Commits

Georg Brandl  committed 3f9cc5b

Fix test failure.

  • Participants
  • Parent commits 27af366

Comments (0)

Files changed (2)

File sphinx/domains/__init__.py

     'c': CDomain,
     'cpp': CPPDomain,
     'js': JavaScriptDomain,
-    'rst': ReSTDomain
+    'rst': ReSTDomain,
 }

File tests/test_rst_domain.py

 
 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', '')