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

Method test_patma_204

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

Source from the content-addressed store, hash-verified

2171 self.assertEqual(z, 0)
2172
2173 def test_patma_204(self):
2174 def f(w):
2175 match w:
2176 case 42:
2177 out = locals()
2178 del out["w"]
2179 return out
2180 self.assertEqual(f(42), {})
2181 self.assertIs(f(0), None)
2182 self.assertEqual(f(42.0), {})
2183 self.assertIs(f("42"), None)
2184
2185 def test_patma_205(self):
2186 def f(w):

Callers

nothing calls this directly

Calls 3

fFunction · 0.70
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected