Barry Warsaw pushed to branch master at mailman / Mailman
Commits: 49d17bc0 by Barry Warsaw at 2015-10-08T17:08:58Z * 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. - - - - - 2 changed files: - setup.py - src/mailman/testing/nose.py Changes: ===================================== setup.py ===================================== --- 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', ) ===================================== src/mailman/testing/nose.py ===================================== --- 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')) View it on GitLab: https://gitlab.com/mailman/mailman/commit/49d17bc04386293b3f659e24070f618f5f1b3b05
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org