mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 03:06:53 +00:00
Fix the codes in the tests
This commit is contained in:
parent
321bbce17f
commit
df6375c952
1 changed files with 2 additions and 2 deletions
|
|
@ -36,6 +36,6 @@ class McCabeTest(unittest.TestCase):
|
|||
self.assertEqual(get_code_complexity(_GLOBAL, 1), 2)
|
||||
self.out.seek(0)
|
||||
res = self.out.read().strip().split('\n')
|
||||
wanted = ["stdin:5:1: W901 'a' is too complex (4)",
|
||||
"stdin:2:1: W901 'Loop 2' is too complex (2)"]
|
||||
wanted = ["stdin:5:1: C901 'a' is too complex (4)",
|
||||
"stdin:2:1: C901 'Loop 2' is too complex (2)"]
|
||||
self.assertEqual(res, wanted)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue