diff options
author | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2016-12-25 16:40:49 +0000 |
---|---|---|
committer | Cosimo Lupo <cosimo.lupo@daltonmaag.com> | 2016-12-25 16:40:49 +0000 |
commit | c64f7b8622c936859a9e006b6f4a2f5e2c33ee1b (patch) | |
tree | e12c81c58bdc9ea54bea0932878c2f7b588c3203 /coverage/control.py | |
parent | e9d029b78194764caee109c434d887ab36413000 (diff) | |
download | python-coveragepy-c64f7b8622c936859a9e006b6f4a2f5e2c33ee1b.tar.gz |
control.Coverage._init: check "source" is a directory, not just it exists; there could be a file with that namecheck-source-isdir
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/control.py b/coverage/control.py index 1b7edc4..992ca58 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -219,7 +219,7 @@ class Coverage(object): self.source = [] self.source_pkgs = [] for src in self.config.source or []: - if os.path.exists(src): + if os.path.isdir(src): self.source.append(files.canonical_filename(src)) else: self.source_pkgs.append(src) |