Example #1
0
def test(namespace = multiprocessing):
    global multiprocessing
    
    multiprocessing = namespace
    
    for func in [test_value, test_queue, test_condition,
                 test_semaphore, test_join_timeout, test_event,
                 test_sharedvalues]:
        print '\n\t########## %s\n' % func.__name__
        func()
    
    ignore =  multiprocessing.active_children()
    if hasattr(multiprocessing, '_debug_info'):
        info = multiprocessing._debug_info()
        if info:
            print info
            raise ValueError('there should be no positive refcount left')
def test(namespace=multiprocessing):
    global multiprocessing

    multiprocessing = namespace

    for func in [ test_value, test_queue, test_condition,
                  test_semaphore, test_join_timeout, test_event,
                  test_sharedvalues ]:

        print('\n\t######## %s\n' % func.__name__)
        func()

    ignore = multiprocessing.active_children()      # cleanup any old processes
    if hasattr(multiprocessing, '_debug_info'):
        info = multiprocessing._debug_info()
        if info:
            print(info)
            raise ValueError('there should be no positive refcounts left')
def test(namespace=multiprocessing):
    global multiprocessing

    multiprocessing = namespace

    for func in [
        test_value,
        test_queue,
        test_condition,
        test_semaphore,
        test_join_timeout,
        test_event,
        test_sharedvalues,
    ]:

        print "\n\t######## %s\n" % func.__name__
        func()

    ignore = multiprocessing.active_children()  # cleanup any old processes
    if hasattr(multiprocessing, "_debug_info"):
        info = multiprocessing._debug_info()
        if info:
            print info
            raise ValueError("there should be no positive refcounts left")