summaryrefslogtreecommitdiff
path: root/tests/test_domain_cpp.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-17 19:08:28 +0900
committerGitHub <noreply@github.com>2018-12-17 19:08:28 +0900
commitc7ed4f3ddd34013f56d21ad7b7da1d95563a1d51 (patch)
tree2f069c9c3f9ce3b4a028c1c853339151d631b4f2 /tests/test_domain_cpp.py
parentbe6decaddf491b8471f7f648be959e941ae8d5f3 (diff)
parent2b0096fba98f8c550d64bbbfda8c15453e3f6126 (diff)
downloadsphinx-git-c7ed4f3ddd34013f56d21ad7b7da1d95563a1d51.tar.gz
Merge pull request #5814 from jdufresne/str-format-coerce
Remove redundant coerce to str in string formatting
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r--tests/test_domain_cpp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py
index 3e19efbbf..8c0f4c14a 100644
--- a/tests/test_domain_cpp.py
+++ b/tests/test_domain_cpp.py
@@ -43,7 +43,7 @@ def check(name, input, idDict, output=None):
res = text_type(ast)
if res != output:
print("")
- print("Input: ", text_type(input))
+ print("Input: ", input)
print("Result: ", res)
print("Expected: ", output)
raise DefinitionError("")
@@ -74,13 +74,13 @@ def check(name, input, idDict, output=None):
res.append(idExpected[i] == idActual[i])
if not all(res):
- print("input: %s" % text_type(input).rjust(20))
+ print("input: %s" % input.rjust(20))
for i in range(1, _max_id + 1):
if res[i]:
continue
print("Error in id version %d." % i)
- print("result: %s" % str(idActual[i]))
- print("expected: %s" % str(idExpected[i]))
+ print("result: %s" % idActual[i])
+ print("expected: %s" % idExpected[i])
print(rootSymbol.dump(0))
raise DefinitionError("")