Skip to content

Commit

Permalink
flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyAttalla committed Apr 22, 2021
1 parent 721a92d commit 8889db8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sklearn/datasets/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_load_files_w_allowed_and_ignored_extensions(load_files_root):
load_files(load_files_root, allowed_extensions=[".txt"],
ignored_extensions=[".txt"])


def test_load_files_w_ignore_list(tmp_path):
d = tmp_path / "sub"
d.mkdir()
Expand All @@ -151,7 +151,7 @@ def test_load_files_w_ignore_list(tmp_path):
p3.touch()
res = load_files(tmp_path, ignored_extensions=[".txt"])
assert len(res.filenames) == 2
assert all([re.search(".*\.txt$", f) for f in res.filenames]) == False
assert all([re.search(r".*\.txt$", f) for f in res.filenames]) is False


def test_load_files_w_allow_list(tmp_path):
Expand All @@ -165,7 +165,7 @@ def test_load_files_w_allow_list(tmp_path):
p3.touch()
res = load_files(tmp_path, allowed_extensions=[".txt"])
assert len(res.filenames) == 1
assert all([re.search(".*\.txt$", f) for f in res.filenames]) == True
assert all([re.search(r".*\.txt$", f) for f in res.filenames]) is True


def test_load_sample_images():
Expand Down

0 comments on commit 8889db8

Please sign in to comment.