Skip to content

Commit

Permalink
Avoid issues when running split_source test on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaharkes committed Jun 3, 2021
1 parent a4121d9 commit 415a65c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/masonry/builders/fixtures/split_source/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ authors = [
]
license = "MIT"
packages = [
{ include = "moduleA", from = "libA" },
{ include = "moduleB", from = "libB" },
{ include = "module_a", from = "lib_a" },
{ include = "module_b", from = "lib_b" },
]

[tool.poetry.dependencies]
Expand Down
6 changes: 1 addition & 5 deletions tests/masonry/builders/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +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 "moduleA" in ns["package_dir"] or "moduleB" in ns["package_dir"]
if "moduleA" in ns["package_dir"]:
assert ns["package_dir"]["moduleA"] == "libA/moduleA"
if "moduleB" in ns["package_dir"]:
assert ns["package_dir"]["moduleB"] == "libB/moduleB"
assert "module_a" in ns["package_dir"] or "module_b" in ns["package_dir"]

0 comments on commit 415a65c

Please sign in to comment.