mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
15 lines
257 B
Python
15 lines
257 B
Python
import sys
|
|
|
|
# windows doesn't support pwd
|
|
if sys.platform.startswith("win"):
|
|
exit(0)
|
|
|
|
import pwd
|
|
|
|
from testutils import assert_raises
|
|
|
|
with assert_raises(KeyError):
|
|
fake_name = "fake_user"
|
|
while pwd.getpwnam(fake_name):
|
|
fake_name += "1"
|