Skip to content

Commit af6a8bf

Browse files
committed
Temporarily skip test_async_global_awaited_by on free-threading
1 parent d92b520 commit af6a8bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_external_inspection.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
import socket
77
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
99
from test.support.script_helper import make_script
1010
from test.support.socket_helper import find_unused_port
1111

@@ -406,6 +406,7 @@ async def main():
406406
self.assertEqual(stack_trace, expected_stack_trace)
407407

408408
@skip_if_not_supported
409+
@requires_gil_enabled("gh-133359: occasionally flaky on AMD64")
409410
@unittest.skipIf(sys.platform == "linux" and not PROCESS_VM_READV_SUPPORTED,
410411
"Test only runs on Linux with process_vm_readv support")
411412
def test_async_global_awaited_by(self):
@@ -517,7 +518,6 @@ async def main():
517518
self.assertEqual(all_awaited_by[1], (0, []))
518519
entries = all_awaited_by[0][1]
519520
# expected: at least 1000 pending tasks
520-
print(entries, file=sys.stderr)
521521
self.assertGreaterEqual(len(entries), 1000)
522522
# the first three tasks stem from the code structure
523523
self.assertIn((ANY, 'Task-1', []), entries)
@@ -548,7 +548,6 @@ async def main():
548548
"Test only runs on Linux with process_vm_readv support")
549549
def test_self_trace(self):
550550
stack_trace = get_stack_trace(os.getpid())
551-
print(stack_trace)
552551
self.assertEqual(stack_trace[0], "test_self_trace")
553552

554553
if __name__ == "__main__":

0 commit comments

Comments
 (0)