import sys
import time
import logging

log = logging.getLogger(__name__)

# test cases
def test_test():
    for i in range(200):
        print "Mu! {0}".format(i)
    assert False
def test_test2():
    assert really_long_name_for_a_variable_oh_boy_this_is_long_wheeeeeeeeeeeeeeee == YOUR_MOTHER_IS_A_NICE_LADY

def test():
    assert True

def test_test_test_test_test_test_test_test_test_test_test_test_test_test_test():
    assert False

def test_test3():
    assert False
def test_test4():
    time.sleep(1)
    assert False

def test_test5():
    assert False
def test_test6():
    assert False
def test_test7():
    assert False
def test_test8():
    assert False
def test_test9():
    assert False
def test_test10():
    assert False

def mu_test():
    print "BANG BANG"

    sys.stderr.write("MU\n")
    log.debug('DANG')
    assert aoeu

import sys
import time
import logging

log = logging.getLogger(__name__)

# test cases
def test_test():
    for i in range(200):
        print "Mu! {0}".format(i)
        print 'WHEE' * 100
    assert False
def test_test2():
    assert really_long_name_for_a_variable_oh_boy_this_is_long_wheeeeeeeeeeeeeeee == YOUR_MOTHER_IS_A_NICE_LADY

def test():
    assert True

def test_test_test_test_test_test_test_test_test_test_test_test_test_test_test():
    assert False

def test_test3():
    assert False
def test_test4():
    time.sleep(1)
    assert False

def test_test5():
    assert False
def test_test6():
    assert False
def test_test7():
    assert False
def test_test8():
    assert False
def test_test9():
    assert False
def test_test10():
    assert False

def mu_test():
    print "BANG BANG"

    sys.stderr.write("MU\n")
    log.debug('DANG')
    assert aoeu

Add stress test for wrapping stdout
Add stress test for wrapping stdout
