[issue11559] Increase test coverage in dis module

2011-03-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f41c3d9e05bd by Benjamin Peterson in branch 'default': improve dis test coverage (closes #11559) http://hg.python.org/cpython/rev/f41c3d9e05bd -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue11559] Increase test coverage in dis module

2011-03-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11559] Increase test coverage in dis module

2011-03-15 Thread Matias Bordese
Matias Bordese added the comment: Updated patch following Benjamin advice (1. and 2.). Re 3. Why is dist(None) a RuntimeError and anything else invalid TypeError? When the dis argument is None, the last traceback is disassembled; if something different to None and that does not have code (ie.

[issue11559] Increase test coverage in dis module

2011-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: 1. Use splitlines() instead of split('\n') 2. Use try finally when replacing sys.stdout. 3. Why is dist(None) a RuntimeError and anything else invalid TypeError? -- nosy: +benjamin.peterson ___ Python tracker

[issue11559] Increase test coverage in dis module

2011-03-15 Thread Matias Bordese
New submission from Matias Bordese : Attaching patch to add new tests for dis module. -- components: Tests files: add_dis_tests.patch keywords: patch messages: 131018 nosy: matiasb priority: normal severity: normal status: open title: Increase test coverage in dis module type: behavior v