Opened 9 years ago

Last modified 9 years ago

#5961 enhancement new

Add a new temp file creation API to SynchronousTestCase

Reported by: Jean-Paul Calderone Owned by:
Priority: normal Milestone:
Component: trial Keywords:
Cc: Jonathan Lange Branch:


SynchronousTestCase.mktemp is a handy feature of trial. However, it returns a temporary path as a string, and strings are a terrible abstraction for paths. A new API should be introduced which returns a FilePath instead.

When unicode path support is added to FilePath, this will also have the advantage of allowing the logic for supporting that to be kept in FilePath instead of spread throughout any tests that want a temporary file.

It might also be nice to do away with the extraneous temp segment always included in these paths, if it is possible to do so.

Change History (1)

comment:1 Changed 9 years ago by DefaultCC Plugin

Cc: Jonathan Lange added
Note: See TracTickets for help on using tickets.