I remember I did that before, and then I got weird behavior in other tests. I tried to reproduce it now but i can't because i get the test failures i reported in the other issue. If you don't mind, I think it's safer to use a temp FD for this. The test isn't really using the FD anyway, it is just instantiating a class.