Skip to content

Commit af6f1c3

Browse files
authored
Bump pyupgrade from v3.19.1 to v3.20.0 (#124)
1 parent 86e2d20 commit af6f1c3

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: isort
1616
additional_dependencies: [toml]
1717
- repo: https://github.com/asottile/pyupgrade
18-
rev: v3.19.1
18+
rev: v3.20.0
1919
hooks:
2020
- id: pyupgrade
2121
args: [--py38-plus]

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)