summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_mailbox.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Attempt to fix build failure on OS X and Debian alpha; the symptom isAndrew M. Kuchling2006-06-261-1/+1
| | | | | | | | | | consistent with os.wait() returning immediately because some other subprocess had previously exited; the test suite then immediately tries to lock the mailbox and gets an error saying it's already locked. To fix this, do a waitpid() so the test suite only continues once the intended child process has exited.
* Windows doesn't have os.fork(). I'll just disable this test for nowAndrew M. Kuchling2006-06-261-0/+2
|
* Add a test for a conflicting lock.Andrew M. Kuchling2006-06-261-0/+22
| | | | | On slow machines, maybe the time intervals (2 sec, 0.5 sec) will be too tight. I'll see how the buildbots like it.
* Use open() instead of file()Andrew M. Kuchling2006-05-021-3/+3
|
* Hopefully this will fix the spurious failures of test_mailbox.py that I'mGuido van Rossum2006-05-021-4/+8
| | | | | experiencing. (This code and mailbox.py itself are full of calls to file() that should be calls to open() -- but I'm not fixing those.)
* Whitespace normalization.Tim Peters2006-04-221-17/+17
|
* Add Gregory K. Johnson's revised version of mailbox.py (funded byAndrew M. Kuchling2006-04-221-14/+1658
| | | | | | | | | | | | | | | | | the 2005 Summer of Code). The revision adds a number of new mailbox classes that support adding and removing messages; these classes also support mailbox locking and default to using email.Message instead of rfc822.Message. The old mailbox classes are largely left alone for backward compatibility. The exception is the Maildir class, which was present in the old module and now inherits from the new classes. The Maildir class's interface is pretty simple, though, so I think it'll be compatible with existing code. (The change to the NEWS file also adds a missing word to a different news item, which unfortunately required rewrapping the line.)
* added test for bug #996359.Skip Montanaro2004-07-241-3/+18
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-241-1/+1
|
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+6
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* The test used int(time.time()) to get a random number, but this doesn't work ↵Jack Jansen2001-06-191-1/+1
| | | | on the mac (where times are bigger than ints). Changed to int(time.time()%1000000).
* create_message(): When os.link() doesn't exist, make a copy of the msgTim Peters2001-05-221-1/+6
| | | | instead. Allows this test to finish on Windows again.
* Re-write the mailbox test suite to use PyUnit. Cover a lot more groundFred Drake2001-05-211-21/+81
| | | | | for the Maildir mailbox format. This still does not address other mailbox formats.
* Some other tests, when failing, don't always remove their TESTFN file.Guido van Rossum2001-04-101-0/+6
| | | | Try to do it for them, so our mkdir() operation doesn't fail.
* When catching errors from os.rmdir(), test for os.error, not IOError!Guido van Rossum2001-03-021-3/+3
|
* Added test for regression on SourceForge bug #117490.Fred Drake2000-10-231-0/+28