Remove / character from module names.
authorZac Medico <zmedico@gentoo.org>
Thu, 11 Jan 2007 06:18:50 +0000 (06:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 11 Jan 2007 06:18:50 +0000 (06:18 -0000)
svn path=/main/trunk/; revision=5541

tests/__init__.py

index 8d4ea9f0c5e8ee4c9f3c8cbb4709f277f63d3ccf..4ac94383f023ce0bc753d33d7cbdac6a4326a740 100644 (file)
@@ -35,7 +35,7 @@ def getTests( path, base_path ):
        import os
        files = os.listdir( path )
        files = [ f[:-3] for f in files if f.startswith("test_") and f.endswith(".py") ]
-       parent_path = path[len(base_path):]
+       parent_path = path[len(base_path)+1:]
        parent_module = ".".join(("tests", parent_path))
        result = []
        for mymodule in files: