Skip to content

Commit

Permalink
ignore directories
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz committed Jun 20, 2018
1 parent 05a6923 commit 0dcf467
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
## [Unreleased]
### Added
### Fixed
- ignore directories

### Changed
### Deprecated
### Removed
Expand Down
3 changes: 3 additions & 0 deletions pytest_filedata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def get_filedata(name):
raise ValueError("data directory '{}' does not exist".format(dirname))

for each in get_test_files(dirname):
if os.path.isdir(each):
continue

fname = os.path.basename(each)
if fname.startswith('.'):
continue
Expand Down
Empty file.

0 comments on commit 0dcf467

Please sign in to comment.