summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_code_module.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) ↵Serhiy Storchaka2024-08-231-8/+117
| | | | | | | | | | (GH-122816) 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)
* [3.12] gh-87320: In the code module, handle exceptions raised in ↵Serhiy Storchaka2024-07-311-0/+33
| | | | | | | | | sys.excepthook (GH-122456) (GH-122515) 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>
* 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