summaryrefslogtreecommitdiff
path: root/test/test_files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-07-04 00:13:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-07-04 00:13:03 -0400
commit9c7594514f50263a14fb15514078c1bc0f273bd0 (patch)
tree952d55a9b0c2c017f8f0a3751d661e2e1e288143 /test/test_files.py
parentb0d089c4df4b14e38c55016bcfa2d48d0e83c63d (diff)
downloadpython-coveragepy-9c7594514f50263a14fb15514078c1bc0f273bd0.tar.gz
With --source=dir, dir/__init__.py need not exist any longer, but dir/sub/__init__.py still does.
Diffstat (limited to 'test/test_files.py')
-rw-r--r--test/test_files.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_files.py b/test/test_files.py
index a00a968..d45f597 100644
--- a/test/test_files.py
+++ b/test/test_files.py
@@ -147,7 +147,6 @@ class FindPythonFilesTest(CoverageTest):
def test_find_python_files(self):
self.make_file("sub/a.py")
self.make_file("sub/b.py")
- self.make_file("sub/__init__.py")
self.make_file("sub/x.c") # nope: not .py
self.make_file("sub/ssub/__init__.py")
self.make_file("sub/ssub/s.py")
@@ -155,7 +154,7 @@ class FindPythonFilesTest(CoverageTest):
self.make_file("sub/lab/exp.py") # nope: no __init__.py
py_files = set(find_python_files("sub"))
self.assert_same_files(py_files, [
- "sub/__init__.py", "sub/a.py", "sub/b.py",
+ "sub/a.py", "sub/b.py",
"sub/ssub/__init__.py", "sub/ssub/s.py",
])