Skip to content

Commit

Permalink
fix pypa#1419 PEP420: clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance authored and pganssle committed Aug 11, 2018
1 parent 874f37e commit efa6dcd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions setuptools/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,9 @@ def test_find_namespace_directive(self, tmpdir):
dir_sub_two, _ = make_package_dir('sub_two', dir_package, ns=True)

with get_dist(tmpdir) as dist:
assert set(dist.packages) == set([
assert set(dist.packages) == {
'fake_package', 'fake_package.sub_two', 'fake_package.sub_one'
])
}

config.write(
'[options]\n'
Expand All @@ -651,8 +651,9 @@ def test_find_namespace_directive(self, tmpdir):
' fake_package.sub_one\n'
)
with get_dist(tmpdir) as dist:
assert set(dist.packages) == set(
['fake_package', 'fake_package.sub_two'])
assert set(dist.packages) == {
'fake_package', 'fake_package.sub_two'
}

def test_extras_require(self, tmpdir):
fake_env(
Expand Down

0 comments on commit efa6dcd

Please sign in to comment.