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

Method test_patma_208

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

Source from the content-addressed store, hash-verified

2224 self.assertEqual(f([1, 2.0]), {})
2225
2226 def test_patma_208(self):
2227 def f(w):
2228 match w:
2229 case x:
2230 out = locals()
2231 del out["w"]
2232 return out
2233 self.assertEqual(f(42), {"x": 42})
2234 self.assertEqual(f((1, 2)), {"x": (1, 2)})
2235 self.assertEqual(f(None), {"x": None})
2236
2237 def test_patma_209(self):
2238 def f(w):

Callers

nothing calls this directly

Calls 2

fFunction · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected