summaryrefslogtreecommitdiff
path: root/src/mailman/tests/test_documentation.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-07-17 01:16:27 -0400
committerBarry Warsaw2009-07-17 01:16:27 -0400
commit422a6757e6aafbd12c220aa8dfdc33f8c377718c (patch)
tree6ef992640eb9a29079ad7be3fb34eae2b81fcf47 /src/mailman/tests/test_documentation.py
parent1bfc7f302f2730a679b2a4a103c2978d8e7c70ae (diff)
downloadmailman-422a6757e6aafbd12c220aa8dfdc33f8c377718c.tar.gz
mailman-422a6757e6aafbd12c220aa8dfdc33f8c377718c.tar.zst
mailman-422a6757e6aafbd12c220aa8dfdc33f8c377718c.zip
Diffstat (limited to 'src/mailman/tests/test_documentation.py')
-rw-r--r--src/mailman/tests/test_documentation.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/tests/test_documentation.py b/src/mailman/tests/test_documentation.py
index 06cd3f8b2..48b71d72c 100644
--- a/src/mailman/tests/test_documentation.py
+++ b/src/mailman/tests/test_documentation.py
@@ -132,6 +132,10 @@ def dump_json(url):
def setup(testobj):
"""Test setup."""
+ # Make sure future statements in our doctests are the same as everywhere
+ # else.
+ testobj.globs['absolute_import'] = absolute_import
+ testobj.globs['unicode_literals'] = unicode_literals
# In general, I don't like adding convenience functions, since I think
# doctests should do the imports themselves. It makes for better
# documentation that way. However, a few are really useful, or help to