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:
parent
8fc6f35620
commit
8dccece9c0
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue