You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2006/11/13 04:04:44 UTC

svn commit: r474119 - /httpd/mod_python/trunk/test/htdocs/tests.py

Author: grahamd
Date: Sun Nov 12 19:04:44 2006
New Revision: 474119

URL: http://svn.apache.org/viewvc?view=rev&rev=474119
Log:
Need to normalise paths in sys.path for PythonImport test case as sys.path
is extended with document root which follows Apache forward slash convention
and not operating system backward slash convention when on Windows.


Modified:
    httpd/mod_python/trunk/test/htdocs/tests.py

Modified: httpd/mod_python/trunk/test/htdocs/tests.py
URL: http://svn.apache.org/viewvc/httpd/mod_python/trunk/test/htdocs/tests.py?view=diff&rev=474119&r1=474118&r2=474119
==============================================================================
--- httpd/mod_python/trunk/test/htdocs/tests.py (original)
+++ httpd/mod_python/trunk/test/htdocs/tests.py Sun Nov 12 19:04:44 2006
@@ -1021,7 +1021,7 @@
 
     import sys, os
     directory = os.path.dirname(__file__)
-    assert(sys.path.count(directory) == 1)
+    assert(map(os.path.normpath, sys.path).count(directory) == 1)
     if sys.modules.has_key("dummymodule"):
         if not apache.main_server.get_options().has_key("dummymodule::function"):
             req.log_error("dummymodule::function not executed")