Barry Warsaw pushed to branch release-3.0 at mailman / Mailman

Commits:
7adc92c7 by Barry Warsaw at 2015-10-08T17:10:10Z
* 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/7adc92c7892b3565212c3beb683478e5c7f06b06
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to