summaryrefslogtreecommitdiff
path: root/src/mailman/testing/documentation.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-22 20:06:20 -0500
committerBarry Warsaw2014-12-22 20:06:20 -0500
commit286fac3f7c580dfc137ac11290a2ba5713f69472 (patch)
tree1449121ac40dca604016bdef820e32ac08964d39 /src/mailman/testing/documentation.py
parentfdd4748e2bb8da32a737aef3ba4d7705f654c729 (diff)
downloadmailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.gz
mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.tar.zst
mailman-286fac3f7c580dfc137ac11290a2ba5713f69472.zip
Diffstat (limited to 'src/mailman/testing/documentation.py')
-rw-r--r--src/mailman/testing/documentation.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mailman/testing/documentation.py b/src/mailman/testing/documentation.py
index b8d852fed..e7511fb9b 100644
--- a/src/mailman/testing/documentation.py
+++ b/src/mailman/testing/documentation.py
@@ -21,9 +21,6 @@ Note that doctest extraction does not currently work for zip file
distributions. doctest discovery currently requires file system traversal.
"""
-from __future__ import absolute_import, print_function, unicode_literals
-
-__metaclass__ = type
__all__ = [
'setup',
'teardown'
@@ -31,7 +28,6 @@ __all__ = [
from inspect import isfunction, ismethod
-
from mailman.app.lifecycle import create_list
from mailman.config import config
from mailman.testing.helpers import call_api, specialized_message_from_string
@@ -145,11 +141,6 @@ def dump_json(url, data=None, method=None, username=None, password=None):
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['print_function'] = print_function
- 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