commit | ae39d236b41ad369215dc523b63000f4860517cc | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Thu Mar 24 17:12:55 2016 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Thu Mar 24 17:12:55 2016 +0100 |
tree | d9268f826542e2f2ec7ddb4cb02afc9f69ce65f4 | |
parent | f95a19b900262c32d1038a6ab9a6808a58656c34 [diff] |
Enhance and modernize test_os * add create_file() helper function * create files using "x" mode instead of "w" to detect when a previous test forget to remove a file * open file for writing in unbuferred mode (buffering=0) * replace "try/finally: unlink" with self.addCleanup(support.unlink) * register unlink cleanup function *before* creating new files