8000 Fix not throwing the same error as CPython in test_pathlib.test_expanduser by hbina · Pull Request #5578 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

Fix not throwing the same error as CPython in test_pathlib.test_expanduser #5578

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

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add pwd test
  • Loading branch information
youknowone committed Mar 31, 2025
commit 23aa15ffd6113c038ec94a5a24271574d73296d6
7 changes: 7 additions & 0 deletions extra_tests/snippets/stdlib_pwd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from testutils import assert_raises
import pwd

with assert_raises(KeyError):
fake_name = 'fake_user'
while pwd.getpwnam(fake_name):
fake_name += '1'
Loading
0