[Python-Dev] cpython: Cleanup test_builtin (original) (raw)

Serhiy Storchaka storchaka at gmail.com
Thu Aug 22 16:00:03 CEST 2013


22.08.13 14:48, Victor Stinner написав(ла):

You forgot self.addCleanup(unlink, TESTFN) (here and in other places). These functions call writetestfile() which creates the file but also schedules its removal when the test is done (since my changeset): def writetestfile(self): # NB the first 4 lines are also used to test input, below fp = open(TESTFN, 'w') self.addCleanup(unlink, TESTFN) ...

Oh, sorry.



More information about the Python-Dev mailing list