Пример #1
0
 def test_get_handle_info_stdin(self):
     _, library = dist.load()
     stdin_handle = GetStdHandle(library.STD_INPUT_HANDLE)
     handle_flags = GetHandleInformation(stdin_handle)
     inherit = handle_flags & library.HANDLE_FLAG_INHERIT
     expected = (0, library.HANDLE_FLAG_INHERIT)
     self.assertIn(inherit, expected)
Пример #2
0
 def test_stderr_handle(self):
     _, library = dist.load()
     self.assertEqual(
         GetStdHandle(library.STD_ERROR_HANDLE),
         HANDLE(library.GetStdHandle(library.STD_ERROR_HANDLE)))
Пример #3
0
 def test_stdout_handle(self):
     _, library = dist.load()
     self.assertEqual(
         GetStdHandle(library.STD_OUTPUT_HANDLE),
         HANDLE(library.GetStdHandle(library.STD_OUTPUT_HANDLE)))