[Python-Dev] cpython: Cleanup test_builtin
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 write_testfile() which creates the file but also
> schedules its removal when the test is done (since my changeset):
>
> def write_testfile(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