summarylogtreecommitdiffstats
path: root/fix-broken-latex-testcase.patch
diff options
context:
space:
mode:
authordemize2017-05-23 21:53:04 +0000
committersvntogit2017-05-23 21:53:04 +0000
commitfd2950b3db3265fe7220b0ba043b3639449a29c1 (patch)
treea3d36d958f6102a6ee4f1fec8f7399fcf88fa170 /fix-broken-latex-testcase.patch
parent462d05fc7088f25161a052093746f5f8517bc986 (diff)
downloadaur-fd2950b3db3265fe7220b0ba043b3639449a29c1.tar.gz
upgpkg: python-sphinx 1.6.1-3
git-svn-id: file:///srv/repos/svn-community/svn@229859 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Diffstat (limited to 'fix-broken-latex-testcase.patch')
-rw-r--r--fix-broken-latex-testcase.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/fix-broken-latex-testcase.patch b/fix-broken-latex-testcase.patch
new file mode 100644
index 000000000000..a5d94cf31923
--- /dev/null
+++ b/fix-broken-latex-testcase.patch
@@ -0,0 +1,40 @@
+From dd3b100925194b4c8e411f0064c1d049538b95bf Mon Sep 17 00:00:00 2001
+From: Takeshi KOMIYA <i.tkomiya@gmail.com>
+Date: Wed, 17 May 2017 00:03:39 +0900
+Subject: [PATCH] Follow translations
+
+---
+ tests/test_build_latex.py | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
+index 4efe70eda..81522a365 100644
+--- a/tests/test_build_latex.py
++++ b/tests/test_build_latex.py
+@@ -310,19 +310,19 @@ def test_numref_with_language_ja(app, status, warning):
+ print(result)
+ print(status.getvalue())
+ print(warning.getvalue())
+- assert u'\\renewcommand{\\figurename}{\u56f3}' in result
+- assert '\\renewcommand{\\tablename}{TABLE}' in result
+- assert '\\renewcommand{\\literalblockname}{LIST}' in result
++ assert u'\\renewcommand{\\figurename}{\u56f3}' in result # 図
++ assert u'\\renewcommand{\\tablename}{\u8868}' in result # 表
++ assert u'\\renewcommand{\\literalblockname}{\u30ea\u30b9\u30c8}' in result # リスト
+ assert (u'\\hyperref[\\detokenize{index:fig1}]'
+ u'{\u56f3 \\ref{\\detokenize{index:fig1}}}') in result
+ assert ('\\hyperref[\\detokenize{baz:fig22}]'
+ '{Figure\\ref{\\detokenize{baz:fig22}}}') in result
+- assert ('\\hyperref[\\detokenize{index:table-1}]'
+- '{TABLE \\ref{\\detokenize{index:table-1}}}') in result
++ assert (u'\\hyperref[\\detokenize{index:table-1}]'
++ u'{\u8868 \\ref{\\detokenize{index:table-1}}}') in result
+ assert ('\\hyperref[\\detokenize{baz:table22}]'
+ '{Table:\\ref{\\detokenize{baz:table22}}}') in result
+- assert ('\\hyperref[\\detokenize{index:code-1}]'
+- '{LIST \\ref{\\detokenize{index:code-1}}}') in result
++ assert (u'\\hyperref[\\detokenize{index:code-1}]'
++ u'{\u30ea\u30b9\u30c8 \\ref{\\detokenize{index:code-1}}}') in result
+ assert ('\\hyperref[\\detokenize{baz:code22}]'
+ '{Code-\\ref{\\detokenize{baz:code22}}}') in result
+ assert (u'\\hyperref[\\detokenize{foo:foo}]'