This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Refactor test_popen2.py to use unittest.
Type: Stage:
Components: Tests Versions: Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: collinwinter Nosy List: collinwinter, jerry.seutter
Priority: normal Keywords: patch

Created on 2007-03-09 06:38 by jerry.seutter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_popen2_refactor.patch jerry.seutter, 2007-03-09 06:38 patch v1
refactor_test_popen2.py.patch jerry.seutter, 2007-03-16 04:51 patch v2 - folded popen2._test() into test_popen2
Messages (5)
msg52136 - (view) Author: Jerry Seutter (jerry.seutter) * (Python committer) Date: 2007-03-09 06:38
This patch turns test_popen2.py into a unittest file.  There should be no changes in what the file tests.

Modifying test_popen2.py to use unittest also required making a small change to popen2.py, which also contains some testing code.

Lib/test/output/test_popen2 should be removed when this patch is applied.
msg52137 - (view) Author: Collin Winter (collinwinter) * (Python committer) Date: 2007-03-16 02:46
Why not fold popen2._test() into test_popen2? Is there a reason for the "verbose = False" assignment at the top?
msg52138 - (view) Author: Jerry Seutter (jerry.seutter) * (Python committer) Date: 2007-03-16 04:51
File Added: refactor_test_popen2.py.patch
msg52139 - (view) Author: Jerry Seutter (jerry.seutter) * (Python committer) Date: 2007-03-16 04:53
patch v2 changes:

verbose = False was a bug.  Removed.

Folded popen2._test() moved into test_popen2 (good idea, btw).  Refactored some more.
msg52140 - (view) Author: Collin Winter (collinwinter) * (Python committer) Date: 2007-03-16 21:16
Checked in as r54417. Thanks for the patch!
History
Date User Action Args
2022-04-11 14:56:23adminsetgithub: 44687
2007-03-09 06:38:28jerry.seuttercreate