cpython: 4b7c29201c60 (original) (raw)

Mercurial > cpython

changeset 70170:4b7c29201c60

Skip some tests in the absence of multiprocessing.

Vinay Sajip <vinay_sajip@yahoo.co.uk>
date Tue, 17 May 2011 07:41:18 +0100
parents c83fb59b73ea
children 3d7cb852a176
files Lib/test/test_logging.py
diffstat 1 files changed, 11 insertions(+), 5 deletions(-)[+] [-] Lib/test/test_logging.py 16

line wrap: on

line diff

--- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -2504,6 +2504,7 @@ class ConfigDictTest(BaseTest): logging.config.stopListening() t.join(2.0)

@@ -2523,6 +2524,7 @@ class ConfigDictTest(BaseTest): ('ERROR', '4'), ], stream=output)

@@ -3062,15 +3064,19 @@ class LogRecordTest(BaseTest): def test_multiprocessing(self): r = logging.makeLogRecord({}) self.assertEqual(r.processName, 'MainProcess')

def test_optional(self): r = logging.makeLogRecord({}) NOT_NONE = self.assertIsNotNone