[Python-bugs-list] [ python-Bugs-705792 ] test_atexit fails in directories with spaces

SourceForge.net noreply@sourceforge.net
Tue, 18 Mar 2003 11:33:17 -0800


Bugs item #705792, was opened at 2003-03-18 19:33
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=705792&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ben Hutchings (wom-work)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_atexit fails in directories with spaces

Initial Comment:
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]


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=705792&group_id=5470