Skip to content

Commit 2a3da05

Browse files
authored
undo change 4138 (#4149)
1 parent 8e57c91 commit 2a3da05

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cfnlint/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,9 @@ def templates(self):
777777
filenames = cli_alt_args
778778
elif cli_args:
779779
filenames = cli_args
780-
elif not sys.stdin.isatty():
781-
return []
780+
# elif not sys.stdin.isatty():
781+
# if (select.select([sys.stdin], [], [], 0.0)[0]):
782+
# return []
782783
elif file_args:
783784
filenames = file_args
784785
else:

test/unit/module/runner/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def test_print_help(self, mock_isatty, mock_print_help):
7979

8080
self.assertEqual(e.exception.code, 1)
8181
mock_print_help.assert_called_once()
82-
self.assertEqual(mock_isatty.call_count, 2)
82+
mock_isatty.assert_called_once()
83+
# self.assertEqual(mock_isatty.call_count, 2)
8384

8485
def test_bad_regions(self):
8586
config = ConfigMixIn(

0 commit comments

Comments
 (0)