[Python-checkins] r79304 - sandbox/trunk/2to3/lib2to3/tests/test_parser.py
benjamin.peterson
python-checkins at python.org
Mon Mar 22 23:20:23 CET 2010
Author: benjamin.peterson
Date: Mon Mar 22 23:20:22 2010
New Revision: 79304
Log:
fix test_parser when it's run in a path with spaces #7666
Modified:
sandbox/trunk/2to3/lib2to3/tests/test_parser.py
Modified: sandbox/trunk/2to3/lib2to3/tests/test_parser.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/tests/test_parser.py (original)
+++ sandbox/trunk/2to3/lib2to3/tests/test_parser.py Mon Mar 22 23:20:22 2010
@@ -209,6 +209,7 @@
finally:
f.close()
try:
- return os.system("diff -u %r @" % fn)
+ fn = fn.replace('"', '\\"')
+ return os.system('diff -u "%s" @' % fn)
finally:
os.remove("@")
More information about the Python-checkins
mailing list