diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 17:12:55 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-24 17:12:55 +0100 |
commit | ae39d236b41ad369215dc523b63000f4860517cc (patch) | |
tree | d9268f826542e2f2ec7ddb4cb02afc9f69ce65f4 /Python/importlib.h | |
parent | f95a19b900262c32d1038a6ab9a6808a58656c34 (diff) | |
download | cpython-git-ae39d236b41ad369215dc523b63000f4860517cc.tar.gz |
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
Diffstat (limited to 'Python/importlib.h')
0 files changed, 0 insertions, 0 deletions