mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-17 22:40:11 -06:00
Add docker uid and gid fallback tests
This commit is contained in:
@@ -75,14 +75,14 @@ def install_environment(
|
||||
os.mkdir(directory)
|
||||
|
||||
|
||||
def getuid():
|
||||
def getuid(): # pragma: windows no cover
|
||||
try:
|
||||
return os.getuid()
|
||||
except AttributeError:
|
||||
return FALLBACK_UID
|
||||
|
||||
|
||||
def getgid():
|
||||
def getgid(): # pragma: windows no cover
|
||||
try:
|
||||
return os.getgid()
|
||||
except AttributeError:
|
||||
|
||||
Reference in New Issue
Block a user