diff options
| author | Jesus Cea <jcea@jcea.es> | 2012-05-10 03:01:11 (GMT) |
|---|---|---|
| committer | Jesus Cea <jcea@jcea.es> | 2012-05-10 03:01:11 (GMT) |
| commit | f2011e3e49a91e613bbe69a198c2b2239cb874a6 (patch) | |
| tree | 537e9e8b5aefda68638bb5eaf031209244d88c08 /Lib/test/test_posixpath.py | |
| parent | 95f42a86dda8e26ef13a3ce67461e00705173929 (diff) | |
| download | cpython-f2011e3e49a91e613bbe69a198c2b2239cb874a6.zip cpython-f2011e3e49a91e613bbe69a198c2b2239cb874a6.tar.gz cpython-f2011e3e49a91e613bbe69a198c2b2239cb874a6.tar.bz2 | |
Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
Diffstat (limited to 'Lib/test/test_posixpath.py')
| -rw-r--r-- | Lib/test/test_posixpath.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 8bb78d6..957a903 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -201,6 +201,7 @@ class PosixPathTest(unittest.TestCase): with test_support.EnvironmentVarGuard() as env: env['HOME'] = '/' self.assertEqual(posixpath.expanduser("~"), "/") + self.assertEqual(posixpath.expanduser("~/foo"), "/foo") def test_normpath(self): self.assertEqual(posixpath.normpath(""), ".") |
