A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-May/111449.html below:

[Python-Dev] [Python-checkins] cpython: Skip some tests in the absence of multiprocessing.

[Python-Dev] [Python-checkins] cpython: Skip some tests in the absence of multiprocessing. [Python-Dev] [Python-checkins] cpython: Skip some tests in the absence of multiprocessing.Éric Araujo merwok at netwok.org
Wed May 18 18:51:18 CEST 2011
Hi again,

> http://hg.python.org/cpython/rev/4b7c29201c60
> user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
> summary:
>   Skip some tests in the absence of multiprocessing.

> +    @unittest.skipUnless(threading, 'Threading required for this test.')
Who wins, the commit message or the code? :)

> +        try:
> +            import multiprocessing as mp
> +            r = logging.makeLogRecord({})
> +            self.assertEqual(r.processName, mp.current_process().name)
> +        except ImportError:
> +            pass
Isn’t support.import_module or somesuch useful for this kind of checks?

Regards
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4