summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-03-06 14:38:03 -0800
committerDavid Lord <davidism@gmail.com>2020-03-06 14:38:03 -0800
commit5f75f9ec38ccf2ddac4e6b92cc07fec6d9b1b7e0 (patch)
treeaa8b7c6a539db2615e659ae81fa42af7527a78ea /tests/test_utils.py
parent93ba3ba112d2f8ba7bdd8b231e510f74dd0b037e (diff)
downloadclick-5f75f9ec38ccf2ddac4e6b92cc07fec6d9b1b7e0.tar.gz
apply flake8
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 832571a..5247224 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -6,7 +6,6 @@ import pytest
import click._termui_impl
import click.utils
-from click._compat import PY2
from click._compat import WIN
@@ -84,7 +83,7 @@ def test_styling(styles, ref):
assert click.unstyle(ref) == "x y"
-@pytest.mark.parametrize(("text", "expect"), [("\x1b[?25lx y\x1b[?25h", "x y"),])
+@pytest.mark.parametrize(("text", "expect"), [("\x1b[?25lx y\x1b[?25h", "x y")])
def test_unstyle_other_ansi(text, expect):
assert click.unstyle(text) == expect
@@ -340,7 +339,7 @@ def test_open_file_ignore_no_encoding(runner):
@pytest.mark.skipif(WIN, reason="os.chmod() is not fully supported on Windows.")
-@pytest.mark.parametrize("permissions", [0o400, 0o444, 0o600, 0o644,])
+@pytest.mark.parametrize("permissions", [0o400, 0o444, 0o600, 0o644])
def test_open_file_atomic_permissions_existing_file(runner, permissions):
with runner.isolated_filesystem():
with open("existing.txt", "w") as f: