summaryrefslogtreecommitdiff
path: root/Mailman/testing/test_documentation.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-01 11:51:09 -0400
committerBarry Warsaw2007-07-01 11:51:09 -0400
commit0d2733eb508a91a826156f627f78253c9f7cd567 (patch)
tree94967189f2d9be9496915814f45deb9712be038e /Mailman/testing/test_documentation.py
parentf2ce3bc944d813d255e562a2102541fd0e24f1c0 (diff)
downloadmailman-0d2733eb508a91a826156f627f78253c9f7cd567.tar.gz
mailman-0d2733eb508a91a826156f627f78253c9f7cd567.tar.zst
mailman-0d2733eb508a91a826156f627f78253c9f7cd567.zip
Support for case-preserving addresses. When an Address is given an email
address that is not lower cased, the original, case-preserved version is store on the '_original' attribute. The lower-cased version is always used as the key and thus always stored on the 'address' attribute. The IAddress interface is given a new 'original_address' property which returns the case-preserved version. Address's __str__() and __repr__() are similarly modified. The former always includes the case-preserved address; the latter does too, but now also includes the lower-cased 'key' email address (along with the object's id). Searching for an address always does so on the lower-cased version. Test suite is updated as necessary. Also, I'm adding the REPORT_ONLY_FIRST_FAILURE doctest flag so that it's easier to debug doctest failures without having pages of problems to scroll through.
Diffstat (limited to 'Mailman/testing/test_documentation.py')
-rw-r--r--Mailman/testing/test_documentation.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/testing/test_documentation.py b/Mailman/testing/test_documentation.py
index 144e6f64b..23641d57b 100644
--- a/Mailman/testing/test_documentation.py
+++ b/Mailman/testing/test_documentation.py
@@ -67,7 +67,8 @@ def test_suite():
package=Mailman,
optionflags=(doctest.ELLIPSIS
| doctest.NORMALIZE_WHITESPACE
- | doctest.REPORT_NDIFF),
+ | doctest.REPORT_NDIFF
+ | doctest.REPORT_ONLY_FIRST_FAILURE),
tearDown=cleaning_teardown)
suite.addTest(test)
return suite