mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
remove unnecessary list calls around 'sorted' (C413)
This commit is contained in:
committed by
Adam Turner
parent
9e051dfb34
commit
55a0143df7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user