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
0c8e5b43
Unverified
Commit
0c8e5b43
authored
Dec 11, 2022
by
David Hotham
Committed by
GitHub
Dec 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: make tests forward compatible with simplified marker simplification (#7136)
parent
e4dad229
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
tests/repositories/test_pypi_repository.py
+11
-4
No files found.
tests/repositories/test_pypi_repository.py
View file @
0c8e5b43
...
...
@@ -139,11 +139,18 @@ def test_package() -> None:
win_inet
=
package
.
extras
[
"socks"
][
0
]
assert
win_inet
.
name
==
"win-inet-pton"
assert
win_inet
.
python_versions
==
"~2.7 || ~2.6"
assert
(
str
(
win_inet
.
marker
)
==
'sys_platform == "win32" and (python_version == "2.7"'
' or python_version == "2.6") and extra == "socks"'
# Different versions of poetry-core simplify the following marker differently,
# either is fine.
marker1
=
(
'sys_platform == "win32" and (python_version == "2.7" or python_version =='
' "2.6") and extra == "socks"'
)
marker2
=
(
'sys_platform == "win32" and python_version == "2.7" and extra == "socks" or'
' sys_platform == "win32" and python_version == "2.6" and extra == "socks"'
)
assert
str
(
win_inet
.
marker
)
in
{
marker1
,
marker2
}
@pytest.mark.parametrize
(
...
...
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