This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Claudiu.Popa
Recipients Claudiu.Popa, berker.peksag, cjwatson, hynek
Date 2014-06-14.15:16:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402758998.93.0.383910590129.issue18108@psf.upfronthosting.co.za>
In-reply-to
Content
Looks good to me. But aren't the last two lines skipped if an error is raised by the first line from the with block?

+        with self.assertRaises(FileNotFoundError):
+            shutil.chown('invalid-file', user=uid, dir_fd=dirfd)
+            shutil.chown('invalid-file', group=gid, dir_fd=dirfd)
+            shutil.chown('invalid-file', user=uid, group=gid, dir_fd=dirfd)
History
Date User Action Args
2014-06-14 15:16:38Claudiu.Popasetrecipients: + Claudiu.Popa, cjwatson, berker.peksag, hynek
2014-06-14 15:16:38Claudiu.Popasetmessageid: <1402758998.93.0.383910590129.issue18108@psf.upfronthosting.co.za>
2014-06-14 15:16:38Claudiu.Popalinkissue18108 messages
2014-06-14 15:16:38Claudiu.Popacreate