Skip to content

Commit c1efd3b

Browse files
committed
Remove Android special case for .pth testing.
1 parent 106373a commit c1efd3b

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

tests/test_common.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -456,16 +456,4 @@ def test_pth_handling():
456456

457457
# When the .pth file is processed, the full standard library should be
458458
# available. Check if the initialization process could import socket.
459-
if sys.platform == "android" or hasattr(sys, "getandroidapilevel"):
460-
# Android is known to have an issue with .pth/sys.path ordering that
461-
# causes this test to fail. For now, accept this as an XFAIL; if it
462-
# passes, fail as an indicator that the bug has been resolved, and we
463-
# can simplify the test.
464-
if pth_tester.has_socket:
465-
pytest.fail("Android .pth handling bug has been resolved.")
466-
else:
467-
pytest.xfail(
468-
"On Android, .pth files are processed before sys.path is finalized."
469-
)
470-
else:
471-
assert pth_tester.has_socket
459+
assert pth_tester.has_socket

0 commit comments

Comments
 (0)