Skip to content
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

Allow getpass.getuser() to fail #687

Merged
merged 3 commits into from
Jan 23, 2022
Merged

Conversation

chrisburr
Copy link
Contributor

What do these changes do?

Allow getting the username to fail (typically in containerised environments where the uid is randomised).

Are there changes in behavior for the user?

No.

Related issue number

Fixes #587

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: Fix issue with non-ascii contents in doctest text files.

@codecov
Copy link

codecov bot commented Jan 23, 2022

Codecov Report

Merging #687 (e969eab) into master (9100eab) will decrease coverage by 0.07%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #687      +/-   ##
==========================================
- Coverage   83.60%   83.52%   -0.08%     
==========================================
  Files          12       12              
  Lines        2049     2052       +3     
  Branches      331      331              
==========================================
+ Hits         1713     1714       +1     
- Misses        266      268       +2     
  Partials       70       70              
Flag Coverage Δ
ubuntu-latest_3.7_mariadb-10.2 82.24% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.7_mariadb-10.3 82.24% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.7_mariadb-10.4 82.24% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.7_mariadb-10.5 82.24% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.7_mariadb-10.6 82.24% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.7_mariadb-10.7 82.24% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.7_mysql-5.7 83.14% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.8_mariadb-10.2 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.8_mariadb-10.3 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.8_mariadb-10.4 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.8_mariadb-10.5 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.8_mariadb-10.6 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.8_mariadb-10.7 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.8_mysql-5.7 83.52% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.9_mariadb-10.2 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.9_mariadb-10.3 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.9_mariadb-10.4 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.9_mariadb-10.5 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.9_mariadb-10.6 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.9_mariadb-10.7 82.64% <50.00%> (-0.08%) ⬇️
ubuntu-latest_3.9_mysql-5.7 83.52% <50.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiomysql/connection.py 77.18% <50.00%> (-0.17%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9100eab...e969eab. Read the comment docs.

@Nothing4You Nothing4You added this to the 1.0 milestone Jan 23, 2022
@Nothing4You Nothing4You merged commit 72a8432 into aio-libs:master Jan 23, 2022
@Nothing4You
Copy link
Collaborator

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to import aiomysql while running as uid without account
2 participants