diff options
| -rw-r--r-- | setup.py | 1 | ||||
| -rw-r--r-- | src/mailman/testing/nose.py | 4 |
2 files changed, 2 insertions, 3 deletions
@@ -107,5 +107,4 @@ case second `m'. Any other spelling is incorrect.""", 'zope.event', 'zope.interface', ], - test_suite = 'nose2.collector.collector', ) diff --git a/src/mailman/testing/nose.py b/src/mailman/testing/nose.py index e7957e57f..1e96e643f 100644 --- a/src/mailman/testing/nose.py +++ b/src/mailman/testing/nose.py @@ -25,17 +25,17 @@ __all__ = [ import os import re import doctest -import mailman import importlib from mailman.testing.documentation import setup, teardown from mailman.testing.layers import ConfigLayer, MockAndMonkeyLayer, SMTPLayer from nose2.events import Plugin +from pkg_resources import resource_filename DOT = '.' FLAGS = doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | doctest.REPORT_NDIFF -TOPDIR = os.path.dirname(mailman.__file__) +TOPDIR = os.path.dirname(resource_filename('mailman', '__init__.py')) |
