|
5 | 5 | import sys |
6 | 6 | import socket |
7 | 7 | from unittest.mock import ANY |
8 | | -from test.support import os_helper, SHORT_TIMEOUT, busy_retry |
| 8 | +from test.support import os_helper, SHORT_TIMEOUT, busy_retry, requires_gil_enabled |
9 | 9 | from test.support.script_helper import make_script |
10 | 10 | from test.support.socket_helper import find_unused_port |
11 | 11 |
|
@@ -406,6 +406,7 @@ async def main(): |
406 | 406 | self.assertEqual(stack_trace, expected_stack_trace) |
407 | 407 |
|
408 | 408 | @skip_if_not_supported |
| 409 | + @requires_gil_enabled("gh-133359: occasionally flaky on AMD64") |
409 | 410 | @unittest.skipIf(sys.platform == "linux" and not PROCESS_VM_READV_SUPPORTED, |
410 | 411 | "Test only runs on Linux with process_vm_readv support") |
411 | 412 | def test_async_global_awaited_by(self): |
@@ -517,7 +518,6 @@ async def main(): |
517 | 518 | self.assertEqual(all_awaited_by[1], (0, [])) |
518 | 519 | entries = all_awaited_by[0][1] |
519 | 520 | # expected: at least 1000 pending tasks |
520 | | - print(entries, file=sys.stderr) |
521 | 521 | self.assertGreaterEqual(len(entries), 1000) |
522 | 522 | # the first three tasks stem from the code structure |
523 | 523 | self.assertIn((ANY, 'Task-1', []), entries) |
@@ -548,7 +548,6 @@ async def main(): |
548 | 548 | "Test only runs on Linux with process_vm_readv support") |
549 | 549 | def test_self_trace(self): |
550 | 550 | stack_trace = get_stack_trace(os.getpid()) |
551 | | - print(stack_trace) |
552 | 551 | self.assertEqual(stack_trace[0], "test_self_trace") |
553 | 552 |
|
554 | 553 | if __name__ == "__main__": |
|
0 commit comments