Apply fix for https://code.google.com/p/python-nose/issues/detail?id=296

The original fix was coded against the Mercurial repository. Reapply same
patch to today's git repo.