The fullmodname() function chopped off the first character if the
module existed in the current directory. Fix this. Backport candidate (I presume).
This commit is contained in:
parent
13dbabe46e
commit
b427c00376
|
@ -180,7 +180,11 @@ def fullmodname(path):
|
||||||
if len(dir) > len(longest):
|
if len(dir) > len(longest):
|
||||||
longest = dir
|
longest = dir
|
||||||
|
|
||||||
base = path[len(longest) + 1:].replace("/", ".")
|
if longest:
|
||||||
|
base = path[len(longest) + 1:]
|
||||||
|
else:
|
||||||
|
base = path
|
||||||
|
base = base.replace("/", ".")
|
||||||
filename, ext = os.path.splitext(base)
|
filename, ext = os.path.splitext(base)
|
||||||
return filename
|
return filename
|
||||||
|
|
||||||
|
@ -291,6 +295,9 @@ class CoverageResults:
|
||||||
def write_results_file(self, path, lines, lnotab, lines_hit):
|
def write_results_file(self, path, lines, lnotab, lines_hit):
|
||||||
"""Return a coverage results file in path."""
|
"""Return a coverage results file in path."""
|
||||||
|
|
||||||
|
print "path =", `path`
|
||||||
|
if "/arse" in path:
|
||||||
|
import pdb; pdb.set_trace()
|
||||||
try:
|
try:
|
||||||
outfile = open(path, "w")
|
outfile = open(path, "w")
|
||||||
except IOError, err:
|
except IOError, err:
|
||||||
|
|
Loading…
Reference in New Issue