MCPcopy Index your code
hub / github.com/python/cpython / test_patma_212

Method test_patma_212

Lib/test/test_patma.py:2277–2284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2275 self.assertIs(f(({"x": "x", "y": "y"})), None)
2276
2277 def test_patma_212(self):
2278 def f(w):
2279 match w:
2280 case Point(int(xx), y="hello"):
2281 out = locals()
2282 del out["w"]
2283 return out
2284 self.assertEqual(f(Point(42, "hello")), {"xx": 42})
2285
2286 def test_patma_213(self):
2287 def f(w):

Callers

nothing calls this directly

Calls 3

fFunction · 0.70
PointClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected