tests: glob out exception type for directory collision

Got three different results on buildbot.

--HG--
branch : stable