Commit 195404ff authored by Peter Astrand's avatar Peter Astrand

Use os.chdir/os.getcwd instead of os.path.realpath, to support Tru64

TEMP dirs with {memb} strings. Fixes #1063571.
parent 2dae7646
......@@ -208,7 +208,12 @@ class ProcessTestCase(unittest.TestCase):
def test_cwd(self):
tmpdir = os.getenv("TEMP", "/tmp")
tmpdir = os.path.realpath(tmpdir)
# We cannot use os.path.realpath to canonicalize the path,
# since it doesn't expand Tru64 {memb} strings. See bug 1063571.
cwd = os.getcwd()
os.chdir(tmpdir)
tmpdir = os.getcwd()
os.chdir(cwd)
p = subprocess.Popen([sys.executable, "-c",
'import sys,os;' \
'sys.stdout.write(os.getcwd())'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment