Ticket #5809: 5809.patch
| File 5809.patch, 0.9 KB (added by moijes12, 9 months ago) |
|---|
-
twisted/mail/test/test_mail.py
199 199 for line in contents.splitlines(): 200 200 self.fp.lineReceived(line) 201 201 self.fp.eomReceived() 202 self.assertEqual( file(self.final).read(), contents)202 self.assertEqual(open(self.final).read(), contents) 203 203 204 204 def test_interrupted(self): 205 205 contents = "first line\nsecond line\n" … … 863 863 self.messageFiles = [] 864 864 for i in range(10): 865 865 name = self.tmpdir.child('body-%d' % (i,)).path 866 with FilePath(name + '-H').open('w b') as f:866 with FilePath(name + '-H').open('w') as f: 867 867 pickle.dump(['from-%d' % (i,), 'to-%d' % (i,)], f) 868 868 869 869 f = FilePath(name + '-D').open('w')
