We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e283d commit e4a7c82Copy full SHA for e4a7c82
Lib/test/test_capi/test_opt.py
@@ -2706,13 +2706,13 @@ def test_attribute_changes_are_watched(self):
2706
class A:
2707
attr = 10**1000
2708
class TestType(TestCase):
2709
- def read(id0):
2710
- for _ in range(BOTTOM, TOP):
2711
- A.attr
2712
- def write(id0):
2713
- x = A.attr
2714
- x += 1
2715
- A.attr = x
+ def read(id0):
+ for _ in range(BOTTOM, TOP):
+ A.attr
+ def write(id0):
+ x = A.attr
+ x += 1
+ A.attr = x
2716
with ThreadPoolExecutor(NTHREADS) as pool:
2717
pool.submit(read, (1,))
2718
pool.submit(write, (1,))
0 commit comments