Code review comment for lp:~vila/bzr/646133-selftest-as-root

Revision history for this message
John A Meinel (jameinel) wrote :

Um, check your code again. It will return *True* on Windows.

+ def _probe(self):
+ try:
+ uid = os.getuid()
+ except AttributeError:
+ # If there is no uid, chances are there is no root either
+ return True
+ return uid != 0

But then again, notice that you are using a negative "NotRunningAsRoot".

« Back to merge proposal