[Python-Dev] Tests failing on Windows with TESTFN

Jeremy Kloth jeremy.kloth at gmail.com
Sat Jul 28 21:57:06 EDT 2018


On Sat, Jul 28, 2018 at 7:15 PM Chris Jerdonek <chris.jerdonek at gmail.com> wrote:
> Regardless of whether the tempfile or TESTFN approach is used, I think it would be best for a few reasons if the choice is abstracted behind a uniquely named test function (e.g. make_test_file if not already used).

+1, although my particular choice of color would be to add a pair of
functions, mkstemp and mkdtemp, to match the style of
test.support-wrapped library functions for use in the test harness.

-- 
Jeremy Kloth


More information about the Python-Dev mailing list