summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2015-10-08 17:08:58 -0400
committerBarry Warsaw2015-10-08 17:08:58 -0400
commit49d17bc04386293b3f659e24070f618f5f1b3b05 (patch)
tree4878537a6baf5ac5d5307f96d6dbf92a420d103b /src
parent0e2e4b4ee1799e6d0ae7a248b16ee6551f7f5e21 (diff)
downloadmailman-49d17bc04386293b3f659e24070f618f5f1b3b05.tar.gz
mailman-49d17bc04386293b3f659e24070f618f5f1b3b05.tar.zst
mailman-49d17bc04386293b3f659e24070f618f5f1b3b05.zip
Diffstat (limited to 'src')
-rw-r--r--src/mailman/testing/nose.py4
1 files changed, 2 insertions, 2 deletions
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'))