bpo-34240: Convert test_mmap to use tempfile by tjguk · Pull Request #8486 · python/cpython

added 4 commits

July 26, 2018 18:29
test_bz2 currently uses the test.support.TESTFN functionality which creates a temporary file local to the test directory named around the pid.

This can give rise to race conditions where tests are competing with each other to delete and recreate the file.

This change converts the tests to use tempfile.mkstemp which gives a different file every time from the system's temp area
test_mmap currently uses the test.support.TESTFN functionality which creates a temporary file local to the test directory named around the pid.

This can give rise to race conditions where tests are competing with each other to delete and recreate the file.

This change converts the tests to use tempfile.mkstemp which gives a different file every time from the system's temp area

@tjguk tjguk mentioned this pull request

Jul 26, 2018

berkerpeksag

taleinat

@tjguk