Clean up some uses of set, list, and dict

* Use set literals instead of set([...])
* Avoid list(sorted(...)) as sorted returns a list
* Replace dict() with dict literal
This commit is contained in:
Jon Dufresne 2017-05-01 07:03:21 -07:00
parent 23b1f37ffd
commit 541bac6a82
8 changed files with 41 additions and 41 deletions

View file

@ -45,8 +45,8 @@ def test_information(system, pyversion, pyimpl):
},
}
option_manager = mock.Mock(
registered_plugins=set([('pycodestyle', '2.0.0'),
('mccabe', '0.5.9')]),
registered_plugins={('pycodestyle', '2.0.0'),
('mccabe', '0.5.9')},
version='3.1.0',
)
assert expected == debug.information(option_manager)