[tahoe-lafs-trac-stream] [tahoe-lafs] #1472: buildbot is unable to delete directories under _trial_temp* that have non-ASCII names under Windows

tahoe-lafs trac at tahoe-lafs.org
Sat Aug 13 21:02:59 PDT 2011


#1472: buildbot is unable to delete directories under _trial_temp* that have non-
ASCII names under Windows
------------------------------------+--------------------------------------
     Reporter:  davidsarah          |      Owner:  somebody
         Type:  defect              |     Status:  new
     Priority:  major               |  Milestone:  eventually
    Component:  dev-infrastructure  |    Version:  1.8.2
   Resolution:                      |   Keywords:  buildbot unicode windows
Launchpad Bug:                      |
------------------------------------+--------------------------------------

Comment (by davidsarah):

 Replying to [comment:20 zooko]:
 > FWIW, there is a class in {{{fileutil.py}}} that does something similar:
 [source:src/allmydata/util/fileutil.py at 4957#L90].

 {{{NamedTemporaryDirectory}}} deletes the directory tree when the
 {{{NamedTemporaryDirectory}}} object is {{{__del__}}}'d, which is the
 wrong time. We need to delete it when the test has finished (which,
 because of Deferreds, will be some time ''after'' the test method
 returns). There's no simpler way to do this than using {{{addCleanup}}},
 as the current code does.

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1472#comment:21>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list