diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-15 23:02:28 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-16 21:28:51 +0900 |
commit | c6bd84a61467a5a60adb11af7b5a7b99ac591fbf (patch) | |
tree | 239ba4d0bba3e6bf925af917d7c6d219ae1a6f64 /tests/test_build_html5.py | |
parent | d160adb8118ebe19ee74b3fbd55478490c473ed8 (diff) | |
download | sphinx-git-c6bd84a61467a5a60adb11af7b5a7b99ac591fbf.tar.gz |
refactor: Remove u-prefix from strings
Diffstat (limited to 'tests/test_build_html5.py')
-rw-r--r-- | tests/test_build_html5.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_build_html5.py b/tests/test_build_html5.py index cb4290b9c..ced15807a 100644 --- a/tests/test_build_html5.py +++ b/tests/test_build_html5.py @@ -67,11 +67,11 @@ def cached_etree_parse(): (".//pre/span", 'line 2'), ], 'includes.html': [ - (".//pre", u'Max Strauß'), + (".//pre", 'Max Strauß'), (".//a[@class='reference download internal']", ''), - (".//pre/span", u'"quotes"'), - (".//pre/span", u"'included'"), - (".//pre/span[@class='s2']", u'üöä'), + (".//pre/span", '"quotes"'), + (".//pre/span", "'included'"), + (".//pre/span[@class='s2']", 'üöä'), (".//div[@class='inc-pyobj1 highlight-text notranslate']//pre", r'^class Foo:\n pass\n\s*$'), (".//div[@class='inc-pyobj2 highlight-text notranslate']//pre", @@ -79,7 +79,7 @@ def cached_etree_parse(): (".//div[@class='inc-lines highlight-text notranslate']//pre", r'^class Foo:\n pass\nclass Bar:\n$'), (".//div[@class='inc-startend highlight-text notranslate']//pre", - u'^foo = "Including Unicode characters: üöä"\\n$'), + '^foo = "Including Unicode characters: üöä"\\n$'), (".//div[@class='inc-preappend highlight-text notranslate']//pre", r'(?m)^START CODE$'), (".//div[@class='inc-pyobj-dedent highlight-python notranslate']//span", @@ -119,7 +119,7 @@ def cached_etree_parse(): (".//li/p/strong", r'^program\\n$'), (".//li/p/em", r'^dfn\\n$'), (".//li/p/kbd", r'^kbd\\n$'), - (".//li/p/span", u'File \N{TRIANGULAR BULLET} Close'), + (".//li/p/span", 'File \N{TRIANGULAR BULLET} Close'), (".//li/p/code/span[@class='pre']", '^a/$'), (".//li/p/code/em/span[@class='pre']", '^varpart$'), (".//li/p/code/em/span[@class='pre']", '^i$'), |