Home | History | Annotate | Download | only in test

Lines Matching refs:tmpfile

98         if not hasattr(os, "tmpfile"):
100 # As with test_tmpnam() below, the Windows implementation of tmpfile()
104 # XP and below, the semantics of tmpfile() are the same, but the user
106 # their account already. If that's the case, then os.tmpfile() should
111 # test that a subsequent call to os.tmpfile() raises the same error. If
115 warnings.filterwarnings("ignore", "tmpfile", DeprecationWarning)
124 # open() failed, assert tmpfile() fails in the same way.
125 # Although open() raises an IOError and os.tmpfile() raises an
129 fp = os.tmpfile()
133 self.fail("expected os.tmpfile() to raise OSError")
136 # open() worked, therefore, tmpfile() should work. Close our
141 fp = os.tmpfile()