Skip to content

Commit

Permalink
Correct split_source test
Browse files Browse the repository at this point in the history
As noted by @layday, `ns["package_dir"].keys() == {"", "module_b"}`
should always be true, so we don't have to test for module_a in
`ns["package_dir"]`.
  • Loading branch information
jaharkes committed Jun 4, 2021
1 parent 415a65c commit 7a26510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/masonry/builders/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,4 +644,4 @@ def test_split_source():
setup_ast.body = [n for n in setup_ast.body if isinstance(n, ast.Assign)]
ns = {}
exec(compile(setup_ast, filename="setup.py", mode="exec"), ns)
assert "module_a" in ns["package_dir"] or "module_b" in ns["package_dir"]
assert ns["package_dir"] == {"": "lib_a", "module_b": "lib_b/module_b"}

0 comments on commit 7a26510

Please sign in to comment.