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, zach.ware
Date 2014-07-26.12:39:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406378373.46.0.337360125553.issue22080@psf.upfronthosting.co.za>
In-reply-to
Content
Hi. This patch adds a new test helper module, initially added in issue21518, for controlling various aspects on Windows platform, like acquiring / releasing privileges etc. At the same time, it contains a modification in test.support.skip_unless_symlink, so that it tries to acquire the privilege, failing otherwise. The only downside is that acquiring SeCreateSymbolicLinkPrivilege is only possible for admins and it seems to be that they have the privilege by default. On the other hand, for SeBackupPrivilege must be explicitly acquired, so the purpose of this module isn't redundant.

The part of acquiring a privilege using ctypes is based on similar code by Jason R. Coombs.
History
Date User Action Args
2014-07-26 12:39:33Claudiu.Popasetrecipients: + Claudiu.Popa, zach.ware
2014-07-26 12:39:33Claudiu.Popasetmessageid: <1406378373.46.0.337360125553.issue22080@psf.upfronthosting.co.za>
2014-07-26 12:39:33Claudiu.Popalinkissue22080 messages
2014-07-26 12:39:33Claudiu.Popacreate