suppress an irrelevant warning during tests

Yes, we know that an evil tester can fail the test by being quicker and
faking the mode of the temp name retuned by os.tempnam. And no, it's not
a security risk.