summaryrefslogtreecommitdiff
path: root/test/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-10-29 12:17:00 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-10-29 12:17:00 -0400
commit8804c84df66576394cd9eb81a83818abf632d3c9 (patch)
tree15fd85f9b12339179566303bf167f40282a08fcc /test/test_files.py
parent754c8b3c11ed4d6c2b2281796522cd5d812e8b5f (diff)
downloadpython-coveragepy-git-8804c84df66576394cd9eb81a83818abf632d3c9.tar.gz
Fix #163: embarassingly, the wildcards for include and omit didn't work properly for reporting functions. This is now fixed.
Diffstat (limited to 'test/test_files.py')
-rw-r--r--test/test_files.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_files.py b/test/test_files.py
index f2f3581e..207274a2 100644
--- a/test/test_files.py
+++ b/test/test_files.py
@@ -3,7 +3,7 @@
import os, sys
from coverage.files import FileLocator, TreeMatcher, FnmatchMatcher
-from coverage.files import PathAliases, find_python_files
+from coverage.files import PathAliases, find_python_files, abs_file
from coverage.backward import set # pylint: disable=W0622
from coverage.misc import CoverageException
@@ -43,10 +43,10 @@ class FileLocatorTest(CoverageTest):
# Technically, this test doesn't do that on Windows, but drive
# letters make that impractical to acheive.
fl = FileLocator()
- d = fl.abs_file(os.curdir)
+ d = abs_file(os.curdir)
trick = os.path.splitdrive(d)[1].lstrip(os.path.sep)
rel = os.path.join('sub', trick, 'file1.py')
- self.assertEqual(fl.relative_filename(fl.abs_file(rel)), rel)
+ self.assertEqual(fl.relative_filename(abs_file(rel)), rel)
class MatcherTest(CoverageTest):
@@ -168,4 +168,3 @@ class FindPythonFilesTest(CoverageTest):
"sub/a.py", "sub/b.py",
"sub/ssub/__init__.py", "sub/ssub/s.py",
])
-