1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

More Test and Flake8 Cleanup

- Allow flake8 to check more files as well.
This commit is contained in:
2020-06-27 01:08:12 -05:00
parent e05c72ad8c
commit ee2671a5f3
8 changed files with 74 additions and 38 deletions

View File

@@ -51,7 +51,7 @@ def test_init_with_tuple_and_list(force_ossep):
def test_init_with_invalid_value(force_ossep):
try:
path = Path(42)
path = Path(42) # noqa: F841
assert False
except TypeError:
pass
@@ -143,8 +143,8 @@ def test_path_slice(force_ossep):
eq_((), foobar[:foobar])
abcd = Path("a/b/c/d")
a = Path("a")
b = Path("b")
c = Path("c")
b = Path("b") # noqa: #F841
c = Path("c") # noqa: #F841
d = Path("d")
z = Path("z")
eq_("b/c", abcd[a:d])