From 92f39994d2c6c711fbd73a5589d4de7b0ed1b72a Mon Sep 17 00:00:00 2001 From: Tarek Ziade Date: Wed, 19 May 2010 13:38:09 +0200 Subject: added a test that is supposely breaking - refs #152 --HG-- branch : distribute extra : rebase_source : 2fa447a630d946a3adf5886115d89065a675ece2 --- setuptools/tests/test_easy_install.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'setuptools/tests/test_easy_install.py') diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index e02798c6..692982b3 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -10,6 +10,16 @@ from setuptools.command import easy_install as easy_install_pkg from setuptools.dist import Distribution from pkg_resources import Distribution as PRDistribution +try: + import multiprocessing + import logging + _LOG = logging.getLogger('test_easy_install') + logging.basicConfig(level=logging.INFO, stream=sys.stderr) + _MULTIPROC = True +except ImportError: + _MULTIPROC = False + _LOG = None + class FakeDist(object): def get_entry_map(self, group): if group != 'console_scripts': @@ -186,3 +196,8 @@ class TestUserInstallTest(unittest.TestCase): content.sort() self.assertEquals(content, ['UNKNOWN.egg-link', 'easy-install.pth']) + def test_multiproc_atexit(self): + if not _MULTIPROC: + return + _LOG.info('this should not break') + -- cgit v1.2.1