diff options
| author | Barry Warsaw | 2012-08-17 23:32:47 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-08-17 23:32:47 -0400 |
| commit | ffd6b7b2ec632920cbf9d413aa20d83d8333c87f (patch) | |
| tree | a75e7bff8ad7fd2340c61f16d4cac388ddec7730 /src/mailman/tests/test_documentation.py | |
| parent | 82d2ef15e3810abf984dc70c800dac3ebca02f03 (diff) | |
| download | mailman-ffd6b7b2ec632920cbf9d413aa20d83d8333c87f.tar.gz mailman-ffd6b7b2ec632920cbf9d413aa20d83d8333c87f.tar.zst mailman-ffd6b7b2ec632920cbf9d413aa20d83d8333c87f.zip | |
Diffstat (limited to 'src/mailman/tests/test_documentation.py')
| -rw-r--r-- | src/mailman/tests/test_documentation.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mailman/tests/test_documentation.py b/src/mailman/tests/test_documentation.py index 329e0176a..b769f07d6 100644 --- a/src/mailman/tests/test_documentation.py +++ b/src/mailman/tests/test_documentation.py @@ -34,6 +34,8 @@ import sys import doctest import unittest +from inspect import isfunction, ismethod + import mailman from mailman.app.lifecycle import create_list @@ -169,7 +171,10 @@ def setup(testobj): def teardown(testobj): for cleanup in testobj.globs['cleanups']: - cleanup() + if isfunction(cleanup) or ismethod(cleanup): + cleanup() + else: + cleanup[0](*cleanup[1:]) |
