Skip to content

Commit c6e8294

Browse files
committed
Change test docstrings to comments
1 parent ce6f092 commit c6e8294

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Lib/test/test_free_threading/test_frame.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def test_concurrent_repr(self):
8181
run_with_frame(lambda frame: repr(frame))
8282

8383
def test_concurrent_f_trace_write(self):
84-
"""Test writing to f_trace of a live frame."""
8584
def trace_func(frame, event, arg):
8685
return trace_func
8786

@@ -92,7 +91,7 @@ def writer(frame):
9291
run_with_frame(writer)
9392

9493
def test_concurrent_f_trace_read_write(self):
95-
"""Test concurrent reads and writes of f_trace on a live frame."""
94+
# Test concurrent reads and writes of f_trace on a live frame.
9695
def trace_func(frame, event, arg):
9796
return trace_func
9897

@@ -106,15 +105,14 @@ def writer(frame):
106105
run_with_frame([reader, writer, reader, writer])
107106

108107
def test_concurrent_f_trace_opcodes_write(self):
109-
"""Test writing to f_trace_opcodes of a live frame."""
110108
def writer(frame):
111109
frame.f_trace_opcodes = True
112110
frame.f_trace_opcodes = False
113111

114112
run_with_frame(writer)
115113

116114
def test_concurrent_f_trace_opcodes_read_write(self):
117-
"""Test concurrent reads and writes of f_trace_opcodes on a live frame."""
115+
# Test concurrent reads and writes of f_trace_opcodes on a live frame.
118116
def reader(frame):
119117
_ = frame.f_trace_opcodes
120118

@@ -125,7 +123,7 @@ def writer(frame):
125123
run_with_frame([reader, writer, reader, writer])
126124

127125
def test_concurrent_frame_clear(self):
128-
"""Test race between frame.clear() and attribute reads."""
126+
# Test race between frame.clear() and attribute reads.
129127
def create_frame():
130128
x = 1
131129
y = 2

0 commit comments

Comments
 (0)