Message221072
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. |
|
Date |
User |
Action |
Args |
2014-06-20 07:55:22 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa, ezio.melotti, vajrasky |
2014-06-20 07:55:22 | Claudiu.Popa | set | messageid: <1403250922.22.0.144483211237.issue20069@psf.upfronthosting.co.za> |
2014-06-20 07:55:22 | Claudiu.Popa | link | issue20069 messages |
2014-06-20 07:55:21 | Claudiu.Popa | create | |
|