summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2020-03-08 08:57:08 -0700
committerDavid Lord <davidism@gmail.com>2020-03-08 08:57:08 -0700
commit718485be48263056e7036ea9a60ce11b47e2fc26 (patch)
tree0fa1b49ed926f18ab3d247c2cacada892908123a /tests/test_utils.py
parentf8f02bfc63cb6e63b7a3373384758f7226553408 (diff)
downloadclick-718485be48263056e7036ea9a60ce11b47e2fc26.tar.gz
manual cleanup
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 5247224..d86f59b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -203,21 +203,21 @@ def test_echo_color_flag(monkeypatch, capfd):
click.echo(styled_text, color=False)
out, err = capfd.readouterr()
- assert out == text + "\n"
+ assert out == "{}\n".format(text)
click.echo(styled_text, color=True)
out, err = capfd.readouterr()
- assert out == styled_text + "\n"
+ assert out == "{}\n".format(styled_text)
isatty = True
click.echo(styled_text)
out, err = capfd.readouterr()
- assert out == styled_text + "\n"
+ assert out == "{}\n".format(styled_text)
isatty = False
click.echo(styled_text)
out, err = capfd.readouterr()
- assert out == text + "\n"
+ assert out == "{}\n".format(text)
@pytest.mark.skipif(WIN, reason="Test too complex to make work windows.")