Home | History | Annotate | Download | only in test

Lines Matching refs:tmpfile

103     @unittest.skipUnless(hasattr(os, 'tmpfile'), 'test needs os.tmpfile()')
105 # As with test_tmpnam() below, the Windows implementation of tmpfile()
109 # XP and below, the semantics of tmpfile() are the same, but the user
111 # their account already. If that's the case, then os.tmpfile() should
116 # test that a subsequent call to os.tmpfile() raises the same error. If
120 warnings.filterwarnings("ignore", "tmpfile", DeprecationWarning)
129 # open() failed, assert tmpfile() fails in the same way.
130 # Although open() raises an IOError and os.tmpfile() raises an
134 fp = os.tmpfile()
138 self.fail("expected os.tmpfile() to raise OSError")
141 # open() worked, therefore, tmpfile() should work. Close our
146 fp = os.tmpfile()