summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_pyrepl.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-125666: Avoid PyREPL exiting when a null byte is in input (#125732)devdanzin2024-10-271-0/+5
|
* gh-125096: Don't import _pyrepl in site if PYTHON_BASIC_REPL (#125097)Victor Stinner2024-10-081-0/+12
| | | | | | | If the PYTHON_BASIC_REPL environment variable is set, the site module no longer imports the _pyrepl module. Moreover, the site module now respects -E and -I command line options: ignore PYTHON_BASIC_REPL in this case.
* gh-119180: No longer set `__annotations__` in `__main__` (#124634)Jelle Zijlstra2024-09-271-1/+1
|
* gh-123856: Fix PyREPL failure when a keyboard interrupt is triggered after ↵Emily Morehouse2024-09-251-85/+107
| | | | | using a history search (#124396) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-119310: Fix encoding when reading old history file (#121779)aorcajo2024-09-061-0/+45
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-119034, REPL: Change page up/down keys to search in history (#123607)Victor Stinner2024-09-061-0/+39
| | | | | | Change <page up> and <page down> keys of the Python REPL to history search forward/backward. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-111201: fix auto-indent in pyrepl for muliple pound comments (#123196)Arnon Yaari2024-09-061-0/+18
|
* gh-123228: don't leak file descriptors in pyrepl test (#123302)CF Bolz-Tereick2024-08-251-1/+1
|
* gh-123228: fix return type for _ReadlineWrapper.get_line_buffer() (#123281)Sergey B Kirpichev2024-08-241-1/+7
| | | Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
* gh-122546: Relax SyntaxError check when raising errors on the new REPL (#123233)Sergey B Kirpichev2024-08-221-0/+4
|
* gh-122546: use same filename for different exceptions in new repl (#123217)Sergey B Kirpichev2024-08-221-0/+10
| | | | | * gh-122546: use same filename for different exceptions in new repl * +1
* gh-82378 fix sys.tracebacklimit in pyrepl, approach 2 (#123062)CF Bolz-Tereick2024-08-181-1/+33
| | | | Make sure that pyrepl uses the same logic for sys.tracebacklimit as both the basic repl and the standard sys.excepthook
* gh-87320: In the code module, handle exceptions raised in sys.excepthook ↵CF Bolz-Tereick2024-07-311-0/+24
| | | | | | | (GH-122456) Before, the exception caused by calling non-default sys.excepthook in code.InteractiveInterpreter bubbled up to the caller, ending the REPL.
* gh-121973: Fix flaky test_pyrepl tests (GH-122140)Sam Gross2024-07-231-4/+4
| | | | | | | | | | | | | | | This fixes the flakiness in: * test_inspect_keeps_globals_from_inspected_file * test_inspect_keeps_globals_from_inspected_module The output already includes newlines. Adding newlines for every entry in the output list introduces non-determinism because it added '\n' in places where stdout is flushed or some buffer becomes full. The regex also needed to be updated because pyrepl includes control characters -- the visible output on each line doesn't immediately follow a newline character. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121988: Fix test hang when pyrepl is not available (#121990)Sam Gross2024-07-201-1/+5
| | | | Also explicitly fail the test if we timeout while waiting for output so that this failure mode is caught earlier.
* gh-120678: Guard against stdin.fileno() being unavailable (#121924)Łukasz Langa2024-07-171-6/+14
|
* gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904)Alex Waygood2024-07-171-8/+106
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121605: Fix test hang when pyrepl is not available (GH-121820)Sam Gross2024-07-151-1/+1
| | | | The fallback repl does not support "exit" without parentheses, so the test would hang until the timeout expired.
* gh-121359: make clean environment (no PYTHON* vars) for test_pyrepl.TestMain ↵Sergey B Kirpichev2024-07-151-0/+13
| | | | | (GH-121672) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-121605: Increase timeout in test_pyrepl.run_repl (#121606)Sam Gross2024-07-131-5/+8
| | | | We also need to close the `slave_fd` earlier so that reading from `master_fd` won't block forever when the subprocess finishes.
* gh-121499: Fix multi-line history rendering in the REPL (#121531)Pablo Galindo Salgado2024-07-131-0/+39
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-121351: Skip test_not_wiping_history_file() if no readline (#121422)Sergey B Kirpichev2024-07-061-0/+4
|
* gh-121359: Run test_pyrepl in isolated mode (#121414)Victor Stinner2024-07-051-1/+4
| | | | run_repl() now pass the -I option (isolated mode) to Python if the 'env' parameter is not set.
* gh-121245: a regression test for site.register_readline() (#121259)Sergey B Kirpichev2024-07-031-0/+27
|
* gh-118908: Use __main__ for the default PyREPL namespace (#121054)Łukasz Langa2024-06-261-6/+17
|
* gh-121016: Add test for `PYTHON_BASIC_REPL` envioronment variable (#121017)devdanzin2024-06-261-0/+25
|
* gh-120635: Avoid leaking processes in test_pyrepl (#120676)Victor Stinner2024-06-191-1/+1
| | | | | If the child process takes longer than SHORT_TIMEOUT seconds to complete, kill the process but then wait until it completes with no timeout to not leak child processes.
* gh-118908: Protect the REPL subprocess with a timeout in tests (#120408)Pablo Galindo Salgado2024-06-121-1/+6
|
* gh-118908: Limit exposed globals from internal imports and definitions on ↵Eugene Triguba2024-06-111-2/+61
| | | | new REPL startup (#119547)
* gh-111201: Improve pyrepl auto indentation (#119606)Arnon Yaari2024-05-311-1/+80
| | | | - auto-indent when editing multi-line block - ignore comments
* gh-111201: Support pyrepl on Windows (#119559)Dino Viehland2024-05-311-2/+3
| | | | Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-118911: Trailing whitespace in a block shouldn't prevent the user from ↵Aya Elsayed2024-05-221-5/+14
| | | | | terminating the code block (#119355) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-111201: Speed up paste mode in the REPL (#119341)Pablo Galindo Salgado2024-05-221-1/+1
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-111201: auto-indentation in _pyrepl (#119348)Arnon Yaari2024-05-221-55/+139
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-119205: Fix autocompletion bug in new repl (#119229)Koudai Aono2024-05-211-6/+24
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-119306: Break up _pyrepl tests (#119307)Eugene Triguba2024-05-211-0/+639