summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mailman/docs/NEWS.rst2
-rw-r--r--src/mailman/model/docs/languages.rst10
2 files changed, 7 insertions, 5 deletions
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst
index 0e9a8b875..e17885b72 100644
--- a/src/mailman/docs/NEWS.rst
+++ b/src/mailman/docs/NEWS.rst
@@ -79,6 +79,8 @@ Bugs
(LP: #1291452)
* Fix IntegrityError (against PostgreSQL) when deleting a list with content
filters. [Aurélien Bompard] (LP: #1117174)
+ * Fix test isolation bug in ``languages.rst``.
+ [Piotr Kasprzyk] (LP: #1308769)
3.0 beta 3 -- "Here Again"
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