[Tutor] still nosing around

Jim Mooney cybervigilante at gmail.com
Wed May 22 02:25:37 CEST 2013


Okay, why is nose saying this run is OK when I purposely screwed it up?

import nose

def stand_and_deliver():
    return 52

def stupid_error():
    '''This is my stupid error'''
    assert stand_and_deliver() == 17

if __name__ == '__main__':
    nose.runmodule()

nose result:

Ran 0 tests in 0.000s

OK


-- 
Jim Mooney

"When I got to high school I realized my name would always present
problems." --Dick Hertz


More information about the Tutor mailing list