def test_mtime_stat_raises(self, stat): stat.side_effect = ValueError() x = StatMonitor(['a', 'b']) x._mtime('a')