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
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