summaryrefslogtreecommitdiff
path: root/test/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-03-24 15:12:20 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-03-24 15:12:20 -0400
commit95b8d7c8278cdc04c3d9691d98d2ef337edc3b88 (patch)
tree1d57900f83c20ede5c26c2ece27b8b2da8df6b04 /test/test_files.py
parent71e330e253821b3156ce540ae09eb16ddf20fb4c (diff)
downloadpython-coveragepy-95b8d7c8278cdc04c3d9691d98d2ef337edc3b88.tar.gz
When looking for python files, don't take suspicious ones. Fixes #168.
Diffstat (limited to 'test/test_files.py')
-rw-r--r--test/test_files.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_files.py b/test/test_files.py
index 565bbaa..a00a968 100644
--- a/test/test_files.py
+++ b/test/test_files.py
@@ -151,6 +151,7 @@ class FindPythonFilesTest(CoverageTest):
self.make_file("sub/x.c") # nope: not .py
self.make_file("sub/ssub/__init__.py")
self.make_file("sub/ssub/s.py")
+ self.make_file("sub/ssub/~s.py") # nope: editor effluvia
self.make_file("sub/lab/exp.py") # nope: no __init__.py
py_files = set(find_python_files("sub"))
self.assert_same_files(py_files, [