diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-10-06 17:41:21 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-10-06 17:41:21 +0100 |
commit | 3ff1e3d62896b4775320eb38149c775909fe6ce4 (patch) | |
tree | cda8e08ea8de098e215296242d052ed3c783dd77 /CoverageTestRunner.py | |
parent | 1470c3296f6a28c3dd95c786552702af5a241682 (diff) | |
download | python-coverage-test-runner-trunk.tar.gz |
Revert patch from Jannistrunk
Merging this breaks test suite for cliapp. I don't know why.
Diffstat (limited to 'CoverageTestRunner.py')
-rw-r--r-- | CoverageTestRunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CoverageTestRunner.py b/CoverageTestRunner.py index 6500041..88987a1 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 = pathname[:-len(suffix)] + name = os.path.basename(pathname[:-len(suffix)]) f = file(pathname, mode) return imp.load_module(name, f, pathname, tuple) raise Exception("Unknown module: %s" % pathname) |