bpo-29070: Integration tests for pty module with patch from bpo-26228 by diekmann · Pull Request #2932 · python/cpython
added 25 commits
We need to monkey patch the freshly spawned child! Tested that it is actually called by writing to stderr (test code commented out, I don't want to push the verbose flag through all those children).
PtySpawnTestBase (though it does not define any tests) wants to inherit from unittest to have self.fail() available
We don't capture stdin/stdout by running the child and returning what was written once the child is done. We spawn the child and have the pipes available to communicate with the child while it is running.
"Also, no documentation string for the method should be included. A comment (such as # Tests function returns only True or False) should be used to provide documentation for test methods. This is done because documentation strings get printed out if they exist and thus what test is being run is not stated." /Doc/build/html/library/test.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters