From 49d17bc04386293b3f659e24070f618f5f1b3b05 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 8 Oct 2015 17:08:58 -0400 Subject: * Remove the test_suite key from setup.py; it isn't the right way to run the tests suite (for that, use tox). * Use resource_filename() to locate the top mailman package. --- src/mailman/testing/nose.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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')) -- cgit v1.2.3-70-g09d2