Skip to content

Commit 9ce01b0

Browse files
committed
fix code
Signed-off-by: Manjusaka <[email protected]>
1 parent 37bac81 commit 9ce01b0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,13 +1382,6 @@ def testfunc(n):
13821382
self.assertNotIn("_CHECK_FUNCTION_EXACT_ARGS", uops)
13831383

13841384
def test_method_guards_removed_or_reduced(self):
1385-
class TestObject:
1386-
def test(self, *args, **kwargs):
1387-
return args[0]
1388-
1389-
test_object = TestObject()
1390-
test_bound_method = TestObject.test.__get__(test_object)
1391-
13921385
def testfunc(n):
13931386
result = 0
13941387
for i in range(n):
@@ -2301,5 +2294,12 @@ def f(n):
23012294
def global_identity(x):
23022295
return x
23032296

2297+
class TestObject:
2298+
def test(self, *args, **kwargs):
2299+
return args[0]
2300+
2301+
test_object = TestObject()
2302+
test_bound_method = TestObject.test.__get__(test_object)
2303+
23042304
if __name__ == "__main__":
23052305
unittest.main()

0 commit comments

Comments
 (0)