~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__walkdirs_win32.py

read_dir raises the exception directly, it isn't an iterator/generator

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
            'xxx', u'.')
102
102
 
103
103
    def test_missing_dir(self):
104
 
        e = self.assertRaises(WindowsError, list,
105
 
            self.reader.read_dir('prefix', u'no_such_dir'))
 
104
        e = self.assertRaises(WindowsError,
 
105
            self.reader.read_dir, 'prefix', u'no_such_dir')
106
106
        self.assertEqual(errno.ENOENT, e.errno)
107
107
        self.assertEqual(3, e.winerror)
108
108
        self.assertEqual((3, u'no_such_dir/*'), e.args)