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, ezio.melotti, vajrasky
Date 2014-06-20.07:55:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403250922.22.0.144483211237.issue20069@psf.upfronthosting.co.za>
In-reply-to
Content
I think you can skip the entire test class if os.chown is not available. Also, maybe you can move the obtaining of groups and users in setUpClass? 
Also, in 

+        with self.assertRaises(PermissionError) as cx:
+            os.chown(support.TESTFN, uid_1, gid)
+            os.chown(support.TESTFN, uid_2, gid)

if the first os.chown will raise the PermissionError, the second one won't be called, maybe that's not what you intended to do.
History
Date User Action Args
2014-06-20 07:55:22Claudiu.Popasetrecipients: + Claudiu.Popa, ezio.melotti, vajrasky
2014-06-20 07:55:22Claudiu.Popasetmessageid: <1403250922.22.0.144483211237.issue20069@psf.upfronthosting.co.za>
2014-06-20 07:55:22Claudiu.Popalinkissue20069 messages
2014-06-20 07:55:21Claudiu.Popacreate