diff options
Diffstat (limited to 'tools/is_tty_test.py')
-rwxr-xr-x | tools/is_tty_test.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/is_tty_test.py b/tools/is_tty_test.py deleted file mode 100755 index 16a4ef255..000000000 --- a/tools/is_tty_test.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env python -# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import os -import unittest -from sys import stdin - -from test_util import DenoTestCase, run_tests -from util import tty_capture - -IS_TTY_TEST_TS = "tests/is_tty.ts" - - -@unittest.skipIf(os.name == 'nt', "Unable to test tty on Windows") -class TestIsTty(DenoTestCase): - def test_is_tty(self): - cmd = [self.deno_exe, "run", IS_TTY_TEST_TS] - code, stdout, _ = tty_capture(cmd, b'') - assert code == 0 - assert str(stdin.isatty()).lower() in stdout - - -if __name__ == "__main__": - run_tests() |