Skip to content

Commit e728298

Browse files
authored
Update test_complete.py
1 parent a2f71e8 commit e728298

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/masonry/builders/test_complete.py

-19
Original file line numberDiff line numberDiff line change
@@ -542,25 +542,6 @@ def test_package_with_include(mocker: MockerFixture) -> None:
542542
assert "with-include-1.2.3/for_wheel_only/__init__.py" not in names
543543
assert "with-include-1.2.3/src/src_package/__init__.py" in names
544544

545-
file = tar.extractfile("with-include-1.2.3/setup.py")
546-
assert file
547-
setup = file.read()
548-
setup_ast = ast.parse(setup)
549-
550-
setup_ast.body = [n for n in setup_ast.body if isinstance(n, ast.Assign)]
551-
ns: dict[str, Any] = {}
552-
exec(compile(setup_ast, filename="setup.py", mode="exec"), ns)
553-
assert ns["package_dir"] == {"": "src"}
554-
assert ns["packages"] == [
555-
"extra_dir",
556-
"extra_dir.sub_pkg",
557-
"package_with_include",
558-
"src_package",
559-
"tests",
560-
]
561-
assert ns["package_data"] == {"": ["*"]}
562-
assert ns["modules"] == ["my_module"]
563-
564545
whl = module_path / "dist" / "with_include-1.2.3-py3-none-any.whl"
565546

566547
assert whl.exists()

0 commit comments

Comments
 (0)