File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,18 @@ def test_package() -> None:
139
139
win_inet = package .extras ["socks" ][0 ]
140
140
assert win_inet .name == "win-inet-pton"
141
141
assert win_inet .python_versions == "~2.7 || ~2.6"
142
- assert (
143
- str (win_inet .marker )
144
- == 'sys_platform == "win32" and (python_version == "2.7"'
145
- ' or python_version == "2.6") and extra == "socks"'
142
+
143
+ # Different versions of poetry-core simplify the following marker differently,
144
+ # either is fine.
145
+ marker1 = (
146
+ 'sys_platform == "win32" and (python_version == "2.7" or python_version =='
147
+ ' "2.6") and extra == "socks"'
148
+ )
149
+ marker2 = (
150
+ 'sys_platform == "win32" and python_version == "2.7" and extra == "socks" or'
151
+ ' sys_platform == "win32" and python_version == "2.6" and extra == "socks"'
146
152
)
153
+ assert str (win_inet .marker ) in {marker1 , marker2 }
147
154
148
155
149
156
@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments