diff options
| author | Barry Warsaw | 2014-04-17 10:37:41 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2014-04-17 10:37:41 -0400 |
| commit | 0a170e27ff79c8c521fb07cebb5a6a47c5f5cb4e (patch) | |
| tree | 61684d4783f5a90d4229c9b830fdb89fd14c3bee /src/mailman/model | |
| parent | 13823e4d2b9bea190dd207a02a8107bc43ee49fe (diff) | |
| parent | 2852db8d8e23179a2c463c1244f3807cec53e3a4 (diff) | |
| download | mailman-0a170e27ff79c8c521fb07cebb5a6a47c5f5cb4e.tar.gz mailman-0a170e27ff79c8c521fb07cebb5a6a47c5f5cb4e.tar.zst mailman-0a170e27ff79c8c521fb07cebb5a6a47c5f5cb4e.zip | |
* Fix test isolation bug in ``languages.rst``.
[Piotr Kasprzyk] (LP: #1308769)
Diffstat (limited to 'src/mailman/model')
| -rw-r--r-- | src/mailman/model/docs/languages.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/model/docs/languages.rst b/src/mailman/model/docs/languages.rst index 7bfb0594d..06af71417 100644 --- a/src/mailman/model/docs/languages.rst +++ b/src/mailman/model/docs/languages.rst @@ -15,6 +15,10 @@ running Mailman instance. >>> verifyObject(ILanguageManager, mgr) True + # Make a copy of the language manager's dictionary, so we can restore it + # after the test. Currently the test layer doesn't manage this. + >>> saved = mgr._languages.copy() + # The language manager component comes pre-populated; clear it out. >>> mgr.clear() @@ -24,7 +28,7 @@ A language manager keeps track of the languages it knows about. [] >>> list(mgr.languages) [] - + Adding languages ================ @@ -103,10 +107,6 @@ The language manager can forget about all the language codes it knows about. >>> 'en' in mgr True - # Make a copy of the language manager's dictionary, so we can restore it - # after the test. Currently the test layer doesn't manage this. - >>> saved = mgr._languages.copy() - >>> mgr.clear() >>> 'en' in mgr False |
