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
commit5a8af8616b6638921d0c7bc74537eca372a5eeaf (patch)
tree2c081c758d23d7e640d4678692766c44fa6d5128 /test/test_files.py
parentc7d1c79367fa22c88a932d6a5e88095b74092fcf (diff)
downloadpython-coveragepy-git-5a8af8616b6638921d0c7bc74537eca372a5eeaf.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 a00a9680..d45f5973 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",
])