summaryrefslogtreecommitdiff
path: root/Python/importlib.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-24 17:12:55 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-24 17:12:55 +0100
commitae39d236b41ad369215dc523b63000f4860517cc (patch)
treed9268f826542e2f2ec7ddb4cb02afc9f69ce65f4 /Python/importlib.h
parentf95a19b900262c32d1038a6ab9a6808a58656c34 (diff)
downloadcpython-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