diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-17 19:08:28 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-17 19:08:28 +0900 |
| commit | c7ed4f3ddd34013f56d21ad7b7da1d95563a1d51 (patch) | |
| tree | 2f069c9c3f9ce3b4a028c1c853339151d631b4f2 /tests/test_domain_cpp.py | |
| parent | be6decaddf491b8471f7f648be959e941ae8d5f3 (diff) | |
| parent | 2b0096fba98f8c550d64bbbfda8c15453e3f6126 (diff) | |
| download | sphinx-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.py | 8 |
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("") |
