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

Method test_patma_205

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

Source from the content-addressed store, hash-verified

2183 self.assertIs(f("42"), None)
2184
2185 def test_patma_205(self):
2186 def f(w):
2187 match w:
2188 case 42.0:
2189 out = locals()
2190 del out["w"]
2191 return out
2192 self.assertEqual(f(42.0), {})
2193 self.assertEqual(f(42), {})
2194 self.assertIs(f(0.0), None)
2195 self.assertIs(f(0), None)
2196
2197 def test_patma_206(self):
2198 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