Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
860c8387
Unverified
Commit
860c8387
authored
Apr 06, 2023
by
David Hotham
Committed by
GitHub
Apr 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid resource warning false positive in unit test (#7769)
parent
bd4c6a69
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
tests/console/commands/test_add.py
+1
-2
tests/console/commands/test_build.py
+3
-1
No files found.
tests/console/commands/test_add.py
View file @
860c8387
...
...
@@ -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
...
...
tests/console/commands/test_build.py
View file @
860c8387
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment