Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ce82d57c
Commit
ce82d57c
authored
May 09, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17809: fix a test failure in test_expanduser when $HOME has a trailing /. Patch by Kubilay Kocak.
parent
263fab94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/test/test_posixpath.py
Lib/test/test_posixpath.py
+2
-1
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/test/test_posixpath.py
View file @
ce82d57c
...
...
@@ -318,7 +318,8 @@ class PosixPathTest(unittest.TestCase):
# expanduser should fall back to using the password database
del
env
[
'HOME'
]
home
=
pwd
.
getpwuid
(
os
.
getuid
()).
pw_dir
self
.
assertEqual
(
posixpath
.
expanduser
(
"~"
),
home
)
# $HOME can end with a trailing /, so strip it (see #17809)
self
.
assertEqual
(
posixpath
.
expanduser
(
"~"
),
home
.
rstrip
(
"/"
))
def
test_normpath
(
self
):
self
.
assertEqual
(
posixpath
.
normpath
(
""
),
"."
)
...
...
Misc/ACKS
View file @
ce82d57c
...
...
@@ -648,6 +648,7 @@ Kim Knapp
Lenny Kneler
Pat Knight
Jeff Knupp
Kubilay Kocak
Greg Kochanski
Damon Kohler
Marko Kohtala
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment