summaryrefslogtreecommitdiff
path: root/tools/is_tty_test.py
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-10-29 17:52:57 -0400
committerGitHub <noreply@github.com>2019-10-29 17:52:57 -0400
commit8f571ef166d31f44378c1b6de5f4092fcccef732 (patch)
treec09ffc491e03522141baa51ec004d747ecbe48f1 /tools/is_tty_test.py
parent3c2399e437521122b66a2de735aebbb80a546148 (diff)
Remove TTY tests - dead code (#3229)
Diffstat (limited to 'tools/is_tty_test.py')
-rwxr-xr-xtools/is_tty_test.py23
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()