Message304720
| Author | terry.reedy |
|---|---|
| Recipients | serhiy.storchaka, terry.reedy |
| Date | 2017-10-21.20:06:52 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1508616412.3.0.213398074469.issue31836@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Running test_code_module afte test_idle, which somewhere executes idle code that sets sys.ps1, exposed a deficiency in test_code_module.
TestInteractiveConsole.test_ps1 is intended to test this code in InteractiveConsole.interact.
try:
sys.ps1
except AttributeError:
sys.ps1 = ">>> "
The existing test only tried to test the except branch, but without insuring that the AttributeError occurs. PR 4070 fixes that and adds a test of the try branch, that sys.ps1 is respected and left alone (and later used as it) when present. Ditto for test_ps2. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-10-21 20:06:52 | terry.reedy | set | recipients: + terry.reedy, serhiy.storchaka |
| 2017-10-21 20:06:52 | terry.reedy | set | messageid: <1508616412.3.0.213398074469.issue31836@psf.upfronthosting.co.za> |
| 2017-10-21 20:06:52 | terry.reedy | link | issue31836 messages |
| 2017-10-21 20:06:52 | terry.reedy | create | |