-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DTT1. Change the call to os.getlogin function by getpass.getuser in testing module #5203
Comments
Mmmm, looking at the command used in the comment, I do not have any error using it; it may be your Python/GLIB permission. In any case, @fcaffieri let's set the issue as a |
The Python reference for I recommend this change because some users may get the exception, blocking the test execution. |
There is only this reference to
|
Description
While executing a workflow file, the
os.getlogin()
function generated an exception. See this comment.The
os.getlogin
function returns the user's name logged in on the process's controlling terminal. Typically, processes in the user's session (tty, X session) have a controlling terminal. Processes spawned by the workflow do not have a controlling terminal. The recommended way to obtain the current user is using thegetpass.getuser
function instead. It is a more reliable method.The text was updated successfully, but these errors were encountered: