diff options
| author | Barry Warsaw | 2007-06-28 01:11:50 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-06-28 01:11:50 -0400 |
| commit | 14396f2d9f3a0c19ec340d664390d62192f74f54 (patch) | |
| tree | c9f77ea7018f56d7db2284f18520129067d81e7d /Mailman/testing/test_documentation.py | |
| parent | 4053185269d20fff1e4cef20017eeef2d343be92 (diff) | |
| download | mailman-14396f2d9f3a0c19ec340d664390d62192f74f54.tar.gz mailman-14396f2d9f3a0c19ec340d664390d62192f74f54.tar.zst mailman-14396f2d9f3a0c19ec340d664390d62192f74f54.zip | |
Convert the rest of test_runners.py to doctests; even though incomplete, they
test everything the old unit tests tested. There are XXX's left in the
doctests as reminders to flesh them out.
Change the NNTP_REWRITE_DUPLICATE_HEADERS to use proper capitalization.
Revert a change I made in the conversion of the Switchboard class:
Switchboard.files is no longer a generator. The Runner implementation is
cleaner if this returns a concrete list, so that's what it does now. Update
the tests to reflect that.
The Runner simplifies now too because it no longer needs _open_files() or the
_listcache WeakValueDictionary. The standard list manager handles all this
now, so just use it directly.
Also change the way the Runner sets the language context in _onefile(). It
still tries to set it to the preferred language of the sender, if the sender
is a member of the list. Otherwise it sets it to the list's preferred
language, not the system's preferred language. Removed a conditional that
can't possibly happen.
Diffstat (limited to 'Mailman/testing/test_documentation.py')
0 files changed, 0 insertions, 0 deletions
