[New-bugs-announce] [issue22080] Add windows_helper module helper
report at bugs.python.org
Sat Jul 26 14:39:33 CEST 2014
New submission from Claudiu Popa:
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.
nosy: Claudiu.Popa, zach.ware
title: Add windows_helper module helper
versions: Python 3.5
Added file: http://bugs.python.org/file36108/windows_helper.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce