def test_main():
    threads = []
    thread_info = threading_setup()

    print "Creating"
    for i in range(NUM_THREADS):
        t = TempFileGreedy()
        threads.append(t)
        t.start()

    print "Starting"
    startEvent.set()

    print "Reaping"
    ok = errors = 0
    for t in threads:
        t.join()
        ok += t.ok_count
        errors += t.error_count
        if t.error_count:
            print '%s errors:\n%s' % (t.getName(), t.errors.getvalue())

    msg = (errors, ok) % "Done: errors %d ok %d"
    print msg
    if errors:
        raise TestFailed(msg)

    threading_cleanup(*thread_info)
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_threadedtempfile.py/test_main/swapped operands of `%`