summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-04-12 07:36:25 -0700
committerDavid Lord <davidism@gmail.com>2021-04-12 07:36:25 -0700
commit1167ebe1f2b678b58394332e82675300d4a0299a (patch)
treeacc9ed82d0318533bcedbeb43fd9e5757c9cc3b9 /tests/test_utils.py
parent3f7319081113a0bdfa8fa0b8c4ff018a8f5e5278 (diff)
downloadclick-1167ebe1f2b678b58394332e82675300d4a0299a.tar.gz
use os.fsdecode to display pathsfsdecode
Works with pathlib, consistent with Python's output.
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index b3cfe70..b77d74b 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -93,7 +93,7 @@ def test_filename_formatting():
# filesystem encoding on windows permits this.
if not WIN:
- assert click.format_filename(b"/x/foo\xff.txt", shorten=True) == "foo\ufffd.txt"
+ assert click.format_filename(b"/x/foo\xff.txt", shorten=True) == "foo\udcff.txt"
def test_prompts(runner):