1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Combine setting new umask and getting old one into one

This commit is contained in:
Devesh Kumar Singh 2020-04-29 11:57:11 +05:30
parent 8fc6f35620
commit 8dccece9c0

View file

@ -278,9 +278,8 @@ class TestInstallUnpackedWheel(object):
"""Test that the files created after install honor the permissions
set when the user sets a custom umask"""
prev_umask = os.umask(0)
prev_umask = os.umask(user_mask)
try:
os.umask(user_mask)
self.prep(data, tmpdir)
wheel.install_wheel(
self.name,