See http://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python/ To run the tests Note: Python 2.7 is required to run the tests. $ python test_decorators.py