Issue 705792: test_atexit fails in directories with spaces (original) (raw)
The regression test program test_atexit.py constructs a command line without doing any quoting of arguments. If the name of the build directory contains spaces, the command doesn't work and the test fails. Here's what happens in Windows:
H:\benh\My Documents\python\Python-2.2.2\Lib\test>....\pcbuild\python_d test_atexit.py Adding parser accelerators ... Done. Traceback (most recent call last): File "test_atexit.py", line 33, in ? """) File "test_support.py", line 122, in vereq raise TestFailed, "%r == %r" % (a, b) test_support.TestFailed: '' == "handler2 (7,) {'kw': 'abc'}\nhandler2 () {}\nhandler1\n" [5168 refs]
If I change the current directory to use a compatibility name without a space in it:
H:\benh\My Documents\python\Python-2.2.2\Lib\test>cd h:\benh\mydocu~1\python\python-2.2.2\lib\test
H:\benh\MYDOCU~1\python\Python-2.2.2\Lib\test>....\pcbuild\python_d test_atexit.py Adding parser accelerators ... Done. [5168 refs]