summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mailbox.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) ↵Serhiy Storchaka2017-09-301-1/+1
| | | | | (#3838) (cherry picked from commit f4ea642cb60556231e714089a79d3c59c202661e)
* Issue #20549: Use specific asserts in mailbox, smtplib and poplib tests.Serhiy Storchaka2014-02-081-32/+32
|
* Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-18/+18
|
* #17064: fix sporadic permission errors in test_mailbox on windows.R David Murray2013-02-111-6/+10
| | | | Backported from patch by Jeremy Kloth.
* #15040: Close files in mailbox tests for PyPy compatibilityPetri Lehtinen2012-10-231-7/+24
| | | | Original patch by Matti Picus.
* #15222: Fix a test failure on WindowsPetri Lehtinen2012-09-261-1/+1
|
* #15222: Insert blank line after each message in mbox mailboxesPetri Lehtinen2012-09-251-0/+23
|
* #15222: test_mailbox: End message template in a newlinePetri Lehtinen2012-09-251-13/+13
|
* #15802: Fix test logic in TestMaildir.test_create_tmpPetri Lehtinen2012-09-011-5/+5
|
* #11062: Fix adding a message from file to Babyl mailboxPetri Lehtinen2012-08-151-0/+13
|
* #5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()Petri Lehtinen2012-06-291-0/+17
|
* #9559: Append data to single-file mailbox files if messages are only addedPetri Lehtinen2012-06-281-2/+27
| | | | | | If messages were only added, a new file is no longer created and renamed over the old file when flush() is called on an mbox, MMDF or Babyl mailbox.
* #15036: Make a repeated changes and flushes work with single-file mailboxesPetri Lehtinen2012-06-151-0/+11
|
* Make test_mailbox runnable via python -m unittest.R David Murray2012-04-081-17/+17
|
* Closes #14158: We now track test_support.TESTFN cleanup, and test_mailbox ↵Vinay Sajip2012-03-061-6/+2
| | | | uses shutil.rmtree for simpler code.
* Followup to issue #11867: Use socketpair(), since FreeBSD < 8 doesn't reallyCharles-François Natali2011-12-201-11/+8
| | | | support multiprocessing.Event.
* Issue #11867: Make test_mailbox.test_lock_conflict deterministic (and fix aCharles-François Natali2011-12-191-13/+27
| | | | race condition).
* Update mailbox.Maildir testsPetri Lehtinen2011-11-121-3/+9
| | | | | | | | Remove a sleep to fix transient test failures. Use skewfactor of -3 to make it work on systems that have 1 second precision for time.time(). Closes #11999 Refs #13254
* Fix Maildir initialization so that maildir contents are read correctly.Petri Lehtinen2011-11-051-0/+21
| | | | Closes #13254.
* #11700: proxy object close methods can now be called multiple timesR David Murray2011-06-181-1/+9
| | | | | | This makes them work like the close provided by regular file objects. This patch also backports the close-the-underlying-file code for _ProxyFile objects that was introduced along with context manager support in the 3.x branch.
* #11999: sync based on comparing mtimes, not mtime to system clockR David Murray2011-05-071-16/+17
|
* Merged revisions 85401 via svnmerge fromBrian Curtin2010-10-141-22/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85401 | brian.curtin | 2010-10-12 21:29:46 -0500 (Tue, 12 Oct 2010) | 3 lines Implement #7944. Use `with` throughout the test suite. ........
* #7627: MH.remove() would fail if the MH mailbox was locked;Andrew M. Kuchling2010-02-221-0/+7
| | | | it would call _unlock_file() and pass it a closed file object. Noted by Rob Austein.
* #7092: silence py3k warnings for deprecated modulesEzio Melotti2010-01-301-1/+2
|
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-081-2/+1
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-081-1/+2
| | | | Patch by flox
* This should finally fix #6896. Let's watch the buildbots.Antoine Pitrou2009-11-011-0/+3
|
* Use richer assertions in test_mailbox (for better failure messages).Antoine Pitrou2009-10-311-373/+373
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-350/+350
|
* #1607951: Make mailbox.Maildir re-read the directories less frequently.Andrew M. Kuchling2009-05-021-0/+31
| | | | | This is done by recording the current time -1sec, and not re-reading unless the directory mod. times are >= the recorded time.
* Add missing iteritems() call to the for loop in mailbox.MH.get_message().R. David Murray2009-04-021-0/+6
| | | | Fixes issue2625.
* Bug 3228: take a test from Niels Gustaebel's patch, and based on his patch, ↵Andrew M. Kuchling2008-08-051-6/+29
| | | | check for having os.stat available
* Bug 3228: Explicitly supply the file mode to avoid creating executable files,Andrew M. Kuchling2008-08-041-1/+27
| | | | | and add corresponding tests. Possible 2.5 backport candidate
* #2503 make singletons compared with "is" not == or !=Benjamin Peterson2008-03-291-2/+2
| | | | Thanks to Wummel for the patch
* Ensure that the mailbox is closed to prevent problems on Windows with removingNeal Norwitz2008-03-261-3/+5
| | | | | | an open file. This doesn't seem to be a problem in 2.6, but that appears to be somewhat accidental (specific to reference counting). When this gets merged to 3.0, it will make the 3.0 code simpler.
* Correct test_mailbox on win32: since the test sets a custom 'colon' attributeAmaury Forgeot d'Arc2008-02-031-0/+1
| | | | to the main mailbox, copy it to secondary mailbox instances.
* Bug 1277: make Maildir use the user-provided factory instead of hard-wiring ↵Andrew M. Kuchling2008-01-191-0/+14
| | | | | | MaildirMessage. 2.5.2 bugfix candidate.
* Avoid exception if there's a stray directory inside a Maildir folder.Andrew M. Kuchling2007-07-141-1/+12
| | | | | | | The Maildir specification doesn't seem to say anything about this situation, and it can happen if you're keeping a Maildir mailbox in Subversion (.svn directories) or some similar system. The patch just ignores directories in the cur/, new/, tmp/ folders.
* Try to be a little more resilient to errors. This might help the testNeal Norwitz2007-03-201-2/+2
| | | | | | pass, but my guess is that it won't. I'm guessing that some other test is leaving this file open which means it can't be removed under Windows AFAIK.
* Try to make this test more resistant to dropping from previous runs (ie, ↵Neal Norwitz2007-03-201-0/+1
| | | | files that may exist but cause the test to fail). Should be backported (assuming it works :-)
* Whitespace normalization.Tim Peters2007-01-301-4/+4
|
* Use new email module names (#1637162, #1637159, #1637157).Georg Brandl2007-01-221-8/+8
|
* Remove file-locking in MH.pack() method.Andrew M. Kuchling2006-11-171-0/+15
| | | | | | | | | | | | | | | | | | This change looks massive but it's mostly a re-indenting after removing some try...finally blocks. Also adds a test case that does a pack() while the mailbox is locked; this test would have turned up bugs in the original code on some platforms. In both nmh and GNU Mailutils' implementation of MH-format mailboxes, no locking is done of individual message files when renaming them. The original mailbox.py code did do locking, which meant that message files had to be opened. This code was buggy on certain platforms (found through reading the code); there were code paths that closed the file object and then called _unlock_file() on it. Will backport to 25-maint once I see how the buildbots react to this patch.
* [Bug #1569790] mailbox.Maildir.get_folder() loses factory informationAndrew M. Kuchling2006-11-091-1/+23
| | | | | | | Both the Maildir and MH classes had this bug; the patch fixes both classes and adds a test. Will backport to 25-maint.
* Whitespace normalization.Tim Peters2006-11-031-3/+3
|
* [Bug #1575506] The _singlefileMailbox class was using the wrong file object ↵Andrew M. Kuchling2006-10-271-0/+16
| | | | in its flush() method, causing an error
* Fix the failures on cygwin (2006-08-10 fixed the actual locking issue).Neal Norwitz2006-08-111-5/+8
| | | | | | The first hunk changes the colon to an ! like other Windows variants. We need to always wait on the child so the lock gets released and no other tests fail. This is the try/finally in the second hunk.
* Get mailbox module working on OS/2 EMX port.Andrew MacIntyre2006-07-231-2/+2
|
* Add new utility function, reap_children(), to test_support. This shouldNeal Norwitz2006-06-291-0/+1
| | | | | | | | | | be called at the end of each test that spawns children (perhaps it should be called from regrtest instead?). This will hopefully prevent some of the unexplained failures in the buildbots (hppa and alpha) during tests that spawn children. The problems were not reproducible. There were many zombies that remained at the end of several tests. In the worst case, this shouldn't cause any more problems, though it may not help either. Time will tell.
* Whitespace normalization.Tim Peters2006-06-271-2/+2
|