File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Misc/NEWS.d/next/Security Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 4242
4343 check_abi :
4444 name : ' Check if the ABI has changed'
45- runs-on : ubuntu-latest
45+ runs-on : ubuntu-22.04
4646 needs : check_source
4747 if : needs.check_source.outputs.run_tests == 'true'
4848 steps :
Original file line number Diff line number Diff line change 9595 # Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
9696 doctest :
9797 name : ' Doctest'
98- runs-on : ubuntu-latest
98+ runs-on : ubuntu-22.04
9999 timeout-minutes : 60
100100 steps :
101101 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -503,9 +503,14 @@ def register_readline():
503503 if PYTHON_BASIC_REPL :
504504 CAN_USE_PYREPL = False
505505 else :
506- import _pyrepl .readline
507- import _pyrepl .unix_console
508- from _pyrepl .main import CAN_USE_PYREPL
506+ original_path = sys .path
507+ sys .path = [p for p in original_path if p != '' ]
508+ try :
509+ import _pyrepl .readline
510+ import _pyrepl .unix_console
511+ from _pyrepl .main import CAN_USE_PYREPL
512+ finally :
513+ sys .path = original_path
509514 except ImportError :
510515 return
511516
Original file line number Diff line number Diff line change 1+ Remove the current directory from ``sys.path `` when using PyREPL.
You can’t perform that action at this time.
0 commit comments