Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
test.test_tempfile.test_mktemp.mktemped Class Reference

List of all members.

Public Member Functions

def __init__
def __del__

Public Attributes

 name

Static Private Attributes

 _unlink = os.unlink
 _bflags = tempfile._bin_openflags

Detailed Description

Definition at line 517 of file test_tempfile.py.


Constructor & Destructor Documentation

def test.test_tempfile.test_mktemp.mktemped.__init__ (   self,
  dir,
  pre,
  suf 
)

Definition at line 521 of file test_tempfile.py.

00521 
00522         def __init__(self, dir, pre, suf):
00523             self.name = tempfile.mktemp(dir=dir, prefix=pre, suffix=suf)
00524             # Create the file.  This will raise an exception if it's
00525             # mysteriously appeared in the meanwhile.
00526             os.close(os.open(self.name, self._bflags, 0o600))

Here is the caller graph for this function:

Definition at line 527 of file test_tempfile.py.

00527 
00528         def __del__(self):
00529             self._unlink(self.name)
00530 
    def do_create(self, pre="", suf=""):

Member Data Documentation

Definition at line 519 of file test_tempfile.py.

Definition at line 518 of file test_tempfile.py.

Definition at line 522 of file test_tempfile.py.


The documentation for this class was generated from the following file: