8000 gh-130080: fix warnings in tests · iritkatriel/cpython@ef2367c · GitHub
[go: up one dir, main page]

Skip to content

Commit ef2367c

Browse files
committed
pythongh-130080: fix warnings in tests
1 parent b0a4f65 commit ef2367c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/test/test_functools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,7 +3011,8 @@ def cls_context_manager(cls, arg: int) -> str:
30113011
try:
30123012
yield str(arg)
30133013
finally:
3014-
return 'Done'
3014+
pass
3015+
return 'Done'
30153016

30163017
@classmethod_friendly_decorator
30173018
@classmethod
@@ -3027,7 +3028,8 @@ def cls_context_manager(cls, arg: int) -> str:
30273028
try:
30283029
yield str(arg)
30293030
finally:
3030-
return 'Done'
3031+
pass
3032+
return 'Done'
30313033

30323034
@functools.singledispatchmethod
30333035
@classmethod_friendly_decorator

0 commit comments

Comments
 (0)
0