summaryrefslogtreecommitdiff
path: root/CoverageTestRunner.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-10-06 17:26:09 +0100
committerLars Wirzenius <liw@liw.fi>2013-10-06 17:26:09 +0100
commit1470c3296f6a28c3dd95c786552702af5a241682 (patch)
tree9b21554c8a78a3c9c11449bd5064266033f1302a /CoverageTestRunner.py
parentd7b5706244fca58d8a2564ba6394cb460d2ca2c6 (diff)
parent0a3b1a065257109295f9322f5a7e199d157acfe6 (diff)
downloadcoverage-test-runner-1470c3296f6a28c3dd95c786552702af5a241682.tar.gz
Fix importing of modules with the same basename
By Jannis Pohlmann
Diffstat (limited to 'CoverageTestRunner.py')
-rw-r--r--CoverageTestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/CoverageTestRunner.py b/CoverageTestRunner.py
index 88987a1..6500041 100644
--- a/CoverageTestRunner.py
+++ b/CoverageTestRunner.py
@@ -158,7 +158,7 @@ class CoverageTestRunner:
for tuple in imp.get_suffixes():
suffix, mode, type = tuple
if pathname.endswith(suffix):
- name = os.path.basename(pathname[:-len(suffix)])
+ name = pathname[:-len(suffix)]
f = file(pathname, mode)
return imp.load_module(name, f, pathname, tuple)
raise Exception("Unknown module: %s" % pathname)