what to test the tests?
via #python.de:
A contributed test in t/05_links.t creates softlinks to several directories and then deletes them to test that remove() does NOT follow the softlinks.This happened with an innocent Perl CPAN module only a few days ago.
Unfortunately, one of the places the test links to is File::Spec::rootdir().
As a result, when the test FAILS it will recursively delete the root directory.
Ok, finding joy in another’s misfortune isn’t the greatest virtue - but anyway, it is funny and something to think about.
Update: And while thinking I recalled a paper I read years ago - Reflections on Trusting Trust by Ken Thompson. Read it!