summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_code_module.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] Fix a typo in code module test (GH-130530) (#130534)Miss Islington (bot)2025-02-251-2/+2
| | | | | | Fix a typo in code module test (GH-130530) (cherry picked from commit 56e337d32b88630f2c35458231cd61929f1be6d4) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.13] gh-128595: Add test class helper to force no terminal colour ↵Hugo van Kemenade2025-01-131-1/+2
| | | | | | (GH-128687) (#128778) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.13] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) ↵CF Bolz-Tereick2024-08-221-8/+117
| | | | | | | | | | | | (#123227) Frames of methods in code and codeop modules was show with non-default sys.excepthook. Save correct tracebacks in sys.last_traceback and update __traceback__ attribute of sys.last_value and sys.last_exc. (cherry picked from commit e73e7a7abdc3fed252affcb1629df1b3c8fff2ef) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-87320: In the code module, handle exceptions raised in ↵Miss Islington (bot)2024-08-081-0/+33
| | | | | | | | | sys.excepthook (GH-122456) (GH-122514) Before, the exception caused by calling non-default sys.excepthook in code.InteractiveInterpreter bubbled up to the caller, ending the REPL. (cherry picked from commit bd3d31f380cd451a4ab6da5fbfde463fed95b5b5) Co-authored-by: CF Bolz-Tereick <cfbolz@gmx.de>
* gh-114099: Add test exclusions to support running the test suite on iOS ↵Russell Keith-Magee2024-02-051-0/+1
| | | | | | | | | | | | | (#114889) Add test annotations required to run the test suite on iOS (PEP 730). The majority of the change involve annotating tests that use subprocess, but are skipped on Emscripten/WASI for other reasons, and including iOS/tvOS/watchOS under the same umbrella as macOS/darwin checks. `is_apple` and `is_apple_mobile` test helpers have been added to identify *any* Apple platform, and "any Apple platform except macOS", respectively.
* GH-102895 Add an option local_exit in code.interact to block exit() from ↵Tian Gao2023-10-181-5/+24
| | | | terminating the whole process (GH-102896)
* bpo-40275: Use new test.support helper submodules in tests (GH-21451)Hai Shi2020-08-031-2/+3
|
* bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (#4070)Terry Jan Reedy2017-10-281-0/+8
|
* Issue #27573 make the exit message configurable.Steven D'Aprano2016-08-231-0/+20
|
* Issue27573 code.interact prints a message when exiting.Steven D'Aprano2016-08-141-2/+10
|
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-3/+0
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* #17442: Add chained traceback support to InteractiveInterpreter.R David Murray2014-09-291-0/+35
| | | | Patch by Claudiu Popa.
* - Issue #17756: Fix test_code test when run from the installed location.doko@ubuntu.com2014-05-131-1/+1
|
* Closes #17730: in code.interact(), when banner="", do not print anything.Georg Brandl2013-10-131-0/+14
| | | | Also adds tests for banner printing.
* Issue #12643: Respect sys.excepthook in code.InteractiveConsoleNick Coghlan2012-08-201-0/+72