[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified
Jessica McKellar
report at bugs.python.org
Mon Nov 15 05:04:36 CET 2010
Jessica McKellar <jesstess at mit.edu> added the comment:
Thomas, I think the weirdness you were sensing when trying to adapt the nameCheck calls in test__RandomNameSequence after adding the abspath check is that those test cases really don't need nameCheck.
For example, test_get_six_char_str should be testing that _RandomNameSequence returns something that is both a string and 6 characters, not properties of some path manufactured around it.
I've attached a patch based on Thomas's that factors out the string check in nameCheck and has the tests in test__RandomNameSequence just use the string check.
The patch is against release27-maint.
----------
nosy: +jesstess
title: tempfile.mkdtemp() does not return absolute pathname when dir is specified -> tempfile.mkdtemp() does not return absolute pathname when relative dir is specified
Added file: http://bugs.python.org/file19610/issue7325.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7325>
_______________________________________
More information about the Python-bugs-list
mailing list