diff options
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r-- | tests/test_domain_cpp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index 70876728d..765f9fd65 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -1113,11 +1113,11 @@ def test_domain_cpp_build_misuse_of_roles(app, status, warning): if targetType == 'templateParam': warn.append("WARNING: cpp:{} targets a {} (".format(r, txtTargetType)) warn.append("WARNING: cpp:{} targets a {} (".format(r, txtTargetType)) - warn = list(sorted(warn)) + warn = sorted(warn) for w in ws: assert "targets a" in w ws = [w[w.index("WARNING:"):] for w in ws] - ws = list(sorted(ws)) + ws = sorted(ws) print("Expected warnings:") for w in warn: print(w) |