Commit 860c8387 by David Hotham Committed by GitHub

Avoid resource warning false positive in unit test (#7769)

parent bd4c6a69
......@@ -52,8 +52,7 @@ def tester(command_tester_factory: CommandTesterFactory) -> CommandTester:
@pytest.fixture()
def old_tester(tester: CommandTester) -> CommandTester:
with pytest.warns(DeprecationWarning):
tester.command.installer.use_executor(False)
tester.command.installer._use_executor = False
return tester
......
......@@ -39,6 +39,8 @@ def test_build_with_multiple_readme_files(
assert wheel_file.exists()
assert wheel_file.stat().st_size > 0
sdist_content = tarfile.open(sdist_file).getnames()
with tarfile.open(sdist_file) as tf:
sdist_content = tf.getnames()
assert "my_package-0.1/README-1.rst" in sdist_content
assert "my_package-0.1/README-2.rst" in sdist_content
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment