Can't delete failure.xhtml on Windows because FailureElement keeps a handle open to it
|Reported by:||ivank||Owned by:||exarkun|
(diff, github, buildbot, log)
twisted.web.util.FailureElement keeps a handle open to failure.xhtml:
loader = XMLFile(FilePath(__file__).sibling('failure.xhtml').open())
On Windows, this makes it very hard to change the state of a Twisted checkout when I have a twisted.web program running. If I install Twisted, this problem probably makes it impossible to fully install a new Twisted (again, while a program is running).
Process Explorer shows that my program does not keep handles open to other Twisted files, so this problem, despite being a Python open()/Windows issue, should probably be fixed.