This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_atexit fails in directories with spaces
Type: Stage:
Components: None Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: nnorwitz, wom-work
Priority: normal Keywords:

Created on 2003-03-18 19:33 by wom-work, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Messages (2)
msg15181 - (view) Author: Ben Hutchings (wom-work) Date: 2003-03-18 19:33
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]
msg15182 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-03-19 00:42
Logged In: YES 
user_id=33168

Directories with spaces should work with current CVS.  The
fix needs to be backported.
History
Date User Action Args
2022-04-10 16:07:43adminsetgithub: 38175
2003-03-18 19:33:17wom-workcreate