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. ---------- components: Tests files: windows_helper.patch keywords: patch messages: 224050 nosy: Claudiu.Popa, zach.ware priority: normal severity: normal status: open title: Add windows_helper module helper type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file36108/windows_helper.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22080> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com