class TestCase(unittest.TestCase):

    def setUp(self):
        some_code

def test_case(self):
    blah - blah - blah

def tearDown(self):
    if sys.exc_info()[0]:
        pass
How do I capture a screenshot if my nosetests fail?