[Checkins] SVN: zope.testing/trunk/ Avoid a split() call or we get test failures when running from a directory with spaces in it.

Hanno Schlichting hannosch at hannosch.eu
Tue Sep 15 12:49:26 EDT 2009


Log message for revision 104110:
  Avoid a split() call or we get test failures when running from a directory with spaces in it.
  

Changed:
  U   zope.testing/trunk/CHANGES.txt
  U   zope.testing/trunk/src/zope/testing/testrunner/testrunner-test-selection.txt

-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt	2009-09-15 16:48:53 UTC (rev 104109)
+++ zope.testing/trunk/CHANGES.txt	2009-09-15 16:49:26 UTC (rev 104110)
@@ -4,6 +4,8 @@
 3.8.3 (unreleased)
 ==================
 
+- Avoid a split() call or we get test failures when running from a directory
+  with spaces in it.
 
 3.8.2 (2009-09-15)
 ==================

Modified: zope.testing/trunk/src/zope/testing/testrunner/testrunner-test-selection.txt
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/testrunner-test-selection.txt	2009-09-15 16:48:53 UTC (rev 104109)
+++ zope.testing/trunk/src/zope/testing/testrunner/testrunner-test-selection.txt	2009-09-15 16:49:26 UTC (rev 104110)
@@ -161,7 +161,7 @@
 tab-completion):
 
     >>> subdir = os.path.join(directory_with_tests, 'sample1')
-    >>> sys.argv = ('test --layer 122 -s %s -vv' % subdir).split()
+    >>> sys.argv = ['test', '--layer', '122', '-s', subdir, '-vv']
     >>> from zope.testing import testrunner
     >>> testrunner.run_internal(defaults)
     Running tests at level 1



More information about the checkins mailing list