mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
fix: improve formatting (#1732)
This commit is contained in:
parent
90c7af27d7
commit
d26655371b
17 changed files with 55 additions and 30 deletions
|
@ -10,15 +10,18 @@ from permission_prompt_test import tty_capture
|
|||
|
||||
IS_TTY_TEST_TS = "tests/is_tty.ts"
|
||||
|
||||
|
||||
def is_tty_test(deno_exe):
|
||||
cmd = [deno_exe, IS_TTY_TEST_TS]
|
||||
code, stdout, _ = tty_capture(cmd, b'')
|
||||
assert code == 0
|
||||
assert str(stdin.isatty()).lower() in stdout
|
||||
|
||||
|
||||
def main():
|
||||
deno_exe = os.path.join(build_path(), "deno" + executable_suffix)
|
||||
is_tty_test(deno_exe)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue