r47258 - Merge notouch-8277: don't touch installed files

glyph-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Fri, 15 Apr 2016 17:11:13 -0600 (MDT)
Newsgroups gmane.comp.python.twisted.commits
Message-ID <[email protected]>
Author: glyph
Date: Fri Apr 15 17:11:06 2016
New Revision: 47258

Added:
   trunk/twisted/topfiles/8277.misc
Modified:
   trunk/twisted/mail/test/test_imap.py

Log:
Merge notouch-8277: don't touch installed files

Author: tom.prince

Reviewer: glyph

Fixes: #8277

twisted.mail.test.test_imap.IMAP4ServerTests.testPartialAppend was
touching an installed file for no discernable reason; remove that
unnecessary code.

Modified: trunk/twisted/mail/test/test_imap.py
==============================================================================
--- trunk/twisted/mail/test/test_imap.py	(original)
+++ trunk/twisted/mail/test/test_imap.py	Fri Apr 15 17:11:06 2016
@@ -21,7 +21,6 @@
 
 from zope.interface import implements
 
-from twisted.python.filepath import FilePath
 from twisted.mail.imap4 import MessageSet
 from twisted.mail import imap4
 from twisted.protocols import loopback
@@ -1649,8 +1648,6 @@
 
     def testPartialAppend(self):
         infile = util.sibpath(__file__, 'rfc822.message')
-        # Create the initial file.
-        FilePath(infile).touch()
         SimpleServer.theAccount.addMailbox('PARTIAL/SUBTHING')
         def login():
             return self.client.login('testuser', 'password-test')