Skip to content

Commit 70f1cca

Browse files
fix linting
1 parent 30d2369 commit 70f1cca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Lib/test/test_weakref.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -545,33 +545,33 @@ def _assert_no_proxy_refcount_leak(self, make_class, do_op, op_name):
545545
dead = weakref.proxy(o)
546546
del o
547547
gc.collect()
548-
548+
549549
# Create live proxy
550550
obj = make_class()
551551
ref = weakref.ref(obj)
552552
proxy = weakref.proxy(obj)
553-
553+
554554
# run operation
555555
try:
556556
do_op(proxy, dead)
557557
except ReferenceError:
558558
pass
559559
del proxy, obj, dead
560560
gc.collect()
561-
561+
562562
# verify
563563
self.assertIsNone(ref(), f"Leaked object in '{op_name}' operation")
564-
564+
565565
def test_proxy_unref_binary_refcount(self):
566566
class C:
567567
def __add__(self, o): return NotImplemented
568568
self._assert_no_proxy_refcount_leak(C, operator.add, "Binary")
569-
569+
570570
def test_proxy_unref_ternary_refcount(self):
571571
class C:
572572
def __pow__(self, o, m=None): return NotImplemented
573573
self._assert_no_proxy_refcount_leak(C, lambda p, d: pow(p, d, None), "Ternary")
574-
574+
575575
def test_proxy_unref_richcompare_refcount(self):
576576
class C:
577577
def __eq__(self, o): return NotImplemented

0 commit comments

Comments
 (0)