[issue34239] Convert test_bz2 to use tempfile

2018-07-28 Thread Tim Golden


Change by Tim Golden :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34239] Convert test_bz2 to use tempfile

2018-07-28 Thread TJG


TJG  added the comment:

Thanks, Brett. I'll address Serhiy's comment with a new PR and then tidy 
yup.

--
nosy: +tjguk

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34239] Convert test_bz2 to use tempfile

2018-07-27 Thread Brett Cannon


Brett Cannon  added the comment:

Should this issue be closed, Tim, after you update for Serhiy's suggestion? 
(Basically I'm just making sure you know issues are not automatically closed 
after merge :) .

--
nosy: +brett.cannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

It is more reliable to use test.support.unlink().

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Tim Golden


Tim Golden  added the comment:


New changeset 6a62e1d365934de82ff7c634981b3fbf218b4d5f by Tim Golden in branch 
'master':
bpo-34239: Convert test_bz2 to use tempfile (#8485)
https://github.com/python/cpython/commit/6a62e1d365934de82ff7c634981b3fbf218b4d5f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Tim Golden


Change by Tim Golden :


--
keywords: +patch
pull_requests: +8007
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34239] Convert test_bz2 to use tempfile

2018-07-26 Thread Tim Golden


New submission from Tim Golden :

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.

--
assignee: tim.golden
messages: 322441
nosy: tim.golden
priority: normal
severity: normal
status: open
title: Convert test_bz2 to use tempfile
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com