summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw2015-10-08 17:08:58 -0400
committerBarry Warsaw2015-10-08 17:08:58 -0400
commit49d17bc04386293b3f659e24070f618f5f1b3b05 (patch)
tree4878537a6baf5ac5d5307f96d6dbf92a420d103b
parent0e2e4b4ee1799e6d0ae7a248b16ee6551f7f5e21 (diff)
downloadmailman-49d17bc04386293b3f659e24070f618f5f1b3b05.tar.gz
mailman-49d17bc04386293b3f659e24070f618f5f1b3b05.tar.zst
mailman-49d17bc04386293b3f659e24070f618f5f1b3b05.zip
-rw-r--r--setup.py1
-rw-r--r--src/mailman/testing/nose.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 8a50fb3a4..e42fc776b 100644
--- a/setup.py
+++ b/setup.py
@@ -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'))