[svn r57762] * settle on using suptest for supporting test runs

* fix a bug in getmodpath
* remove redundant functions/files

--HG--
branch : trunk
This commit is contained in:
hpk
2008-09-02 16:31:42 +02:00
parent 7518dcabc2
commit 9eb1d55380
11 changed files with 65 additions and 278 deletions
+7 -3
View File
@@ -43,9 +43,13 @@ class PyobjMixin(object):
for node in chain:
if isinstance(node, Instance):
continue
if stopatmodule and isinstance(node, Module):
break
parts.append(node.name)
name = node.name
if isinstance(node, Module):
if stopatmodule:
break
assert name.endswith(".py")
name = name[:-3]
parts.append(name)
parts.reverse()
s = ".".join(parts)
return s.replace(".[", "[")