bpo-36994: add test for profiling method_descriptor with **kwargs (GH… · python/cpython@b892d3e

Original file line numberDiff line numberDiff line change

@@ -334,6 +334,15 @@ def j(p):

334334

(1, 'return', j_ident),

335335

])

336336
337+

# bpo-34125: profiling method_descriptor with **kwargs

338+

def test_unbound_method(self):

339+

kwargs = {}

340+

def f(p):

341+

dict.get({}, 42, **kwargs)

342+

f_ident = ident(f)

343+

self.check_events(f, [(1, 'call', f_ident),

344+

(1, 'return', f_ident)])

345+
337346

# Test an invalid call (bpo-34126)

338347

def test_unbound_method_no_args(self):

339348

def f(p):