Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def test_clean_ascii(self) -> None:

test_string: str = (
" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]"
+ "^_`abcdefghjiklmnopqrstuvwxyz{|}~\n"
+ "^_`abcdefghijklmnopqrstuvwxyz{|}~\n"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted.

)
self._test_stdin(
main_func=unicode_show_main,
Expand Down Expand Up @@ -480,7 +480,7 @@ def test_pty_color(self) -> None:
self._test_stdin_pty(
main_func=unicode_show_main,
argv0=self.argv0,
stdout_string=expect_string_color,
stdout_string=expect_string_nocolor,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test was removed in an earlier commit.

exit_code=1,
args=[],
stdin_string=test_string,
Expand Down
2 changes: 1 addition & 1 deletion usr/lib/python3/dist-packages/unicode_show/unicode_show.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def main() -> int:
global USE_COLOR
USE_COLOR = (
not os.getenv("NOCOLOR")
and os.getenv("NO_COLOR") != "1"
and os.getenv("NO_COLOR") is None
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was fixed in a different PR (and this is the wrong way to fix it).

and os.getenv("TERM") != "dumb"
and sys.stdout.isatty()
)
Expand Down
Loading