Serhiy Storchaka
40348acc18
bpo-45229: Remove test_main in many tests (GH-28405)
...
Instead of explicitly enumerate test classes for run_unittest()
use the unittest ability to discover tests. This also makes these
tests discoverable and runnable with unittest.
load_tests() can be used for dynamic generating tests and adding
doctests. setUpModule(), tearDownModule() and addModuleCleanup()
can be used for running code before and after all module tests.
2021-09-19 15:27:33 +03:00
Inada Naoki
4663e5f39e
bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25190)
...
* Fix test_lzma
* Fix test_mailbox
* Fix test_mimetypes
* Fix test_posix
2021-04-06 13:02:22 +09:00
Victor Stinner
fbf43f051e
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)
...
Rename "blacklist" parameter of test.support.check__all__() to
"not_exported".
2020-08-17 07:20:40 +02:00
Hai Shi
96a6a6d42b
bpo-40275: Use new test.support helper submodules in tests (GH-21412)
2020-07-09 15:25:10 +02:00
Serhiy Storchaka
9355868458
bpo-41043: Escape literal part of the path for glob(). (GH-20994)
2020-06-20 11:10:31 +03:00
Victor Stinner
278c1e159c
bpo-40094: Add test.support.wait_process() (GH-19254)
...
Moreover, the following tests now check the child process exit code:
* test_os.PtyTests
* test_mailbox.test_lock_conflict()
* test_tempfile.test_process_awareness()
* test_uuid.testIssue8621()
* multiprocessing resource tracker tests
2020-03-31 20:08:12 +02:00
Min ho Kim
c4cacc8c5e
Fix typos in comments, docs and test names ( #15018 )
...
* Fix typos in comments, docs and test names
* Update test_pyparse.py
account for change in string length
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: Dealloccte -> Deallocate
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Update posixmodule checksum.
* Reverse idlelib changes.
2019-07-30 18:16:13 -04:00
Anthony Sottile
8377cd4fcd
Clean up code which checked presence of os.{stat,lstat,chmod} ( #11643 )
2019-02-25 23:32:27 +01:00
Cheryl Sabella
d16f012f84
bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` ( #9857 )
...
This allows *from_* to be successfully set to a non-default value when calling mbox.get_string.
2018-10-18 20:21:47 -04:00
Serhiy Storchaka
f4ea642cb6
bpo-31627: Make test_mailbox be lenient to empty hostname. ( #3821 )
2017-09-30 17:10:57 +03:00
Xavier de Gaye
452b3a6a3e
Issue #28764 : Fix a test_mailbox failure on Android API 24 when run as a non-root user.
2016-12-12 09:55:57 +01:00
Martin Panter
83815aeee8
Issue #27107 : mailbox.fcntl = None on Windows
2016-06-06 02:49:54 +00:00
Martin Panter
ed84ab3335
Issue #27107 : Add exception classes to mailbox.__all__, by Jacek Kołodziej
2016-06-06 01:56:09 +00:00
Serhiy Storchaka
e437a10d15
Issue #23277 : Remove unused imports in tests.
2016-04-24 21:41:02 +03:00
Serhiy Storchaka
cd3aacf525
Issue #20729 : Restored the use of lazy iterkeys()/itervalues()/iteritems()
...
in the mailbox module. This is partial rollback of changeset f340cb045bf9.
2014-08-13 09:35:21 +03:00
Serhiy Storchaka
1ff23d7542
Issue #20549 : Use specific asserts in mailbox, smtplib and poplib tests.
2014-02-08 15:06:43 +02:00
Serhiy Storchaka
578c6777aa
Issue #20549 : Use specific asserts in mailbox, smtplib and poplib tests.
2014-02-08 15:06:08 +02:00
Serhiy Storchaka
43767638a9
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:38 +02:00
Serhiy Storchaka
7908068627
Issue #18702 : All skipped tests now reported as skipped.
2013-11-03 21:31:18 +02:00
R David Murray
a6e902ae35
Merge: #17064 : fix sporadic permission errors in test_mailbox on windows.
...
Patch by Jeremy Kloth.
2013-02-11 10:05:34 -05:00
R David Murray
0b61d3c0f2
Merge: #17064 : fix sporadic permission errors in test_mailbox on windows.
...
Patch by Jeremy Kloth.
2013-02-11 10:05:03 -05:00
R David Murray
b3e8384cbe
#17064 : fix sporadic permission errors in test_mailbox on windows.
...
Patch by Jeremy Kloth.
2013-02-11 10:04:26 -05:00
Jesus Cea
f01d695ccd
Closes #16135 : Removal of OS/2 support
2012-10-05 03:36:11 +02:00
Petri Lehtinen
f6b30385cc
#15222 : Merge 3.2
2012-09-25 22:06:07 +03:00
Petri Lehtinen
f39884bb5a
#15222 : Insert blank line after each message in mbox mailboxes
2012-09-25 22:02:06 +03:00
Petri Lehtinen
468091954f
#15222 : test_mailbox: End message template in a newline
2012-09-25 21:58:51 +03:00
Petri Lehtinen
6f858a2eea
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:27:24 +03:00
Petri Lehtinen
1c371b255f
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:22:36 +03:00
Petri Lehtinen
aae61b8cd0
#11062 : Fix adding a message from file to Babyl mailbox
2012-08-15 14:36:14 +03:00
Petri Lehtinen
3d12c4317c
#11062 : Fix adding a message from file to Babyl mailbox
2012-08-15 14:26:27 +03:00
Petri Lehtinen
25652884b4
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:12:54 +03:00
Petri Lehtinen
5b5619f717
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:10:41 +03:00
Petri Lehtinen
dde8cb0899
#9559 : Append data to single-file mailbox files if messages are only added
...
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.
2012-06-28 13:56:14 +03:00
Petri Lehtinen
f29435f9f0
#9559 : Append data to single-file mailbox files if messages are only added
...
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.
2012-06-28 13:53:23 +03:00
Petri Lehtinen
a717d563d0
#15036 : Make a repeated changes and flushes work with single-file mailboxes
2012-06-15 21:01:56 +03:00
Petri Lehtinen
02653f1b11
#15036 : Make a repeated changes and flushes work with single-file mailboxes
2012-06-15 20:59:31 +03:00
R David Murray
b019ee752a
#12537 : in mailbox avoid depending on knowledge of email package internals
...
Previously mailbox was copying a list of attributes from one message object to
another in order to "copy the message data". This means that any time new
attributes were added to email.message.Message, mailbox broke. Now instead it
copies all attributes from the source object to the target object, skipping
any mailbox-object-specific attributes to produce the same clean initial
state it was previously getting by copying only the "known" attributes.
David Lam assisted in the development of this patch.
2012-04-08 22:36:07 -04:00
R David Murray
c988e24240
Remove redundancy in listing of all mailbox classes in test_mailbox.
2012-04-08 21:00:27 -04:00
R David Murray
f998810deb
Merge: Make test_mailbox runnable via python -m unittest.
2012-04-08 18:35:35 -04:00
R David Murray
317c8d257e
Make test_mailbox runnable via python -m unittest.
2012-04-08 16:46:18 -04:00
R David Murray
e2922835b0
Merge #14291 : if a header has non-ascii unicode, default to CTE using utf-8
...
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.
Patch by Ali Ikinci, assisted by R. David Murray.
I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error. It now uses support.patch to induce an error during
message serialization.
2012-03-14 03:03:27 -04:00
R David Murray
7441a7aedd
#14291 : if a header has non-ascii unicode, default to CTE using utf-8
...
In Python2, if a unicode string was assigned as the value of a header,
email would automatically CTE encode it using the UTF8 charset.
This capability was lost in the Python3 translation, and this patch
restores it.
Patch by Ali Ikinci, assisted by R. David Murray.
I also added a fix for the mailbox test that was depending (with a comment
that it was a bad idea to so depend) on non-ASCII causing message_from_string
to raise an error. It now uses support.patch to induce an error during
message serialization.
2012-03-14 02:59:51 -04:00
Vinay Sajip
2f24d98df0
Closes #14158 : merged test file resilience fix from 3.2.
2012-03-02 01:24:13 +00:00
Vinay Sajip
f959618142
Closes #14158 : improved resilience to test files left behind.
2012-03-02 01:01:13 +00:00
Charles-François Natali
bf38315446
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:48:22 +01:00
Charles-François Natali
78ed83da46
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:18:55 +01:00
Charles-François Natali
29b15d11bb
Followup to issue #11867 : Use socketpair(), since FreeBSD < 8 doesn't really
...
support multiprocessing.Event.
2011-12-20 11:49:25 +01:00
Charles-François Natali
bfaa79a982
Issue #11867 : Make test_mailbox.test_lock_conflict deterministic (and fix a
...
race condition).
2011-12-19 12:19:52 +01:00
Petri Lehtinen
516d80530b
Merge branch 3.2
2011-11-12 21:15:24 +02:00
Petri Lehtinen
c153cd3d5a
Update mailbox.Maildir tests
...
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
2011-11-12 21:14:53 +02:00