Ticket #6165: ticket_6165_3.diff

File ticket_6165_3.diff, 1.3 KB (added by Peter Stringfield, 8 years ago)

Discovered misconfigured vimrc: was not auto-deleting trailing whitespace;; fixed whitespace.

  • new file twisted/topfiles/6165.doc

    diff --git twisted/topfiles/6165.doc twisted/topfiles/6165.doc
    new file mode 100644
    index 0000000..e96a518
    - +  
     1twisted.trial.unittest.SynchronousTestCase.mktemp now makes clear that it creates a path that is unique within the current working directory.
  • twisted/trial/_synctest.py

    diff --git twisted/trial/_synctest.py twisted/trial/_synctest.py
    index e3d7956..d88219a 100644
    class SynchronousTestCase(_Assertions): 
    11141114    def mktemp(self):
    11151115        """
    1116         Returns a unique name that may be used as either a temporary directory
    1117         or filename.
     1116        Return a relative path that is guaranteed to be unique within the
     1117        current working directory. Create every directory between the current
     1118        working directory and the last one if necessary. Do not create the
     1119        last directory/file.
    1119         @note: you must call os.mkdir on the value returned from this method if
    1120             you wish to use it as a directory!
     1121        For a temporary directory call os.mkdir on the path, for a temporary
     1122        file, just create the file (e.g. by opening the path for writing and
     1123        then closing it).
     1125        Trial will delete the temporary directories and files automatically.
    11221127        @return: C{str}
    11231128        """