MCPcopy Create free account
hub / github.com/python/cpython / test_patma_206

Method test_patma_206

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

Source from the content-addressed store, hash-verified

2195 self.assertIs(f(0), None)
2196
2197 def test_patma_206(self):
2198 def f(w):
2199 match w:
2200 case 1 | 2 | 3:
2201 out = locals()
2202 del out["w"]
2203 return out
2204 self.assertEqual(f(1), {})
2205 self.assertEqual(f(2), {})
2206 self.assertEqual(f(3), {})
2207 self.assertEqual(f(3.0), {})
2208 self.assertIs(f(0), None)
2209 self.assertIs(f(4), None)
2210 self.assertIs(f("1"), None)
2211
2212 def test_patma_207(self):
2213 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