Opened 4 years ago

Last modified 4 years ago

#5961 enhancement new

Add a new temp file creation API to SynchronousTestCase

Reported by: exarkun Owned by:
Priority: normal Milestone:
Component: trial Keywords:
Cc: jml 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 4 years ago by DefaultCC Plugin

  • Cc jml added
Note: See TracTickets for help on using tickets.