Skip to content

Commit 98814e5

Browse files
authored
Merge pull request #12109 from sbidoul/macos-xpass-sbi
Revert "xfail test_pip_wheel_ext_module_with_tmpdir_inside"
2 parents 9f72cd0 + fab8cf7 commit 98814e5

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

tests/functional/test_wheel.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -343,15 +343,6 @@ def test_pip_wheel_with_user_set_in_config(
343343
sys.platform.startswith("win"),
344344
reason="The empty extension module does not work on Win",
345345
)
346-
@pytest.mark.xfail(
347-
condition=sys.platform == "darwin" and sys.version_info < (3, 9),
348-
reason=(
349-
"Unexplained 'no module named platform' in "
350-
"https://github.com/pypa/wheel/blob"
351-
"/c87e6ed82b58b41b258a3e8c852af8bc1817bb00"
352-
"/src/wheel/vendored/packaging/tags.py#L396-L411"
353-
),
354-
)
355346
def test_pip_wheel_ext_module_with_tmpdir_inside(
356347
script: PipTestEnvironment, data: TestData, common_wheels: Path
357348
) -> None:

tests/unit/test_network_auth.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_keyring_get_password(
193193
expect: Tuple[Optional[str], Optional[str]],
194194
) -> None:
195195
keyring = KeyringModuleV1()
196-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
196+
monkeypatch.setitem(sys.modules, "keyring", keyring)
197197
auth = MultiDomainBasicAuth(
198198
index_urls=["http://example.com/path2", "http://example.com/path3"],
199199
keyring_provider="import",
@@ -205,7 +205,7 @@ def test_keyring_get_password(
205205

206206
def test_keyring_get_password_after_prompt(monkeypatch: pytest.MonkeyPatch) -> None:
207207
keyring = KeyringModuleV1()
208-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
208+
monkeypatch.setitem(sys.modules, "keyring", keyring)
209209
auth = MultiDomainBasicAuth(keyring_provider="import")
210210

211211
def ask_input(prompt: str) -> str:
@@ -221,7 +221,7 @@ def test_keyring_get_password_after_prompt_when_none(
221221
monkeypatch: pytest.MonkeyPatch,
222222
) -> None:
223223
keyring = KeyringModuleV1()
224-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
224+
monkeypatch.setitem(sys.modules, "keyring", keyring)
225225
auth = MultiDomainBasicAuth(keyring_provider="import")
226226

227227
def ask_input(prompt: str) -> str:
@@ -242,7 +242,7 @@ def test_keyring_get_password_username_in_index(
242242
monkeypatch: pytest.MonkeyPatch,
243243
) -> None:
244244
keyring = KeyringModuleV1()
245-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
245+
monkeypatch.setitem(sys.modules, "keyring", keyring)
246246
auth = MultiDomainBasicAuth(
247247
index_urls=["http://[email protected]/path2", "http://example.com/path4"],
248248
keyring_provider="import",
@@ -278,7 +278,7 @@ def test_keyring_set_password(
278278
expect_save: bool,
279279
) -> None:
280280
keyring = KeyringModuleV1()
281-
monkeypatch.setitem(sys.modules, "keyring", keyring) # type: ignore[misc]
281+
monkeypatch.setitem(sys.modules, "keyring", keyring)
282282
auth = MultiDomainBasicAuth(prompting=True, keyring_provider="import")
283283
monkeypatch.setattr(auth, "_get_url_and_credentials", lambda u: (u, None, None))
284284
monkeypatch.setattr(auth, "_prompt_for_password", lambda *a: creds)
@@ -354,7 +354,7 @@ def get_credential(self, system: str, username: str) -> Optional[Credential]:
354354
def test_keyring_get_credential(
355355
monkeypatch: pytest.MonkeyPatch, url: str, expect: str
356356
) -> None:
357-
monkeypatch.setitem(sys.modules, "keyring", KeyringModuleV2()) # type: ignore[misc]
357+
monkeypatch.setitem(sys.modules, "keyring", KeyringModuleV2())
358358
auth = MultiDomainBasicAuth(
359359
index_urls=["http://example.com/path1", "http://example.com/path2"],
360360
keyring_provider="import",
@@ -378,7 +378,7 @@ def get_credential(self, system: str, username: str) -> None:
378378

379379
def test_broken_keyring_disables_keyring(monkeypatch: pytest.MonkeyPatch) -> None:
380380
keyring_broken = KeyringModuleBroken()
381-
monkeypatch.setitem(sys.modules, "keyring", keyring_broken) # type: ignore[misc]
381+
monkeypatch.setitem(sys.modules, "keyring", keyring_broken)
382382

383383
auth = MultiDomainBasicAuth(
384384
index_urls=["http://example.com/"], keyring_provider="import"

0 commit comments

Comments
 (0)