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

Method test_patma_207

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

Source from the content-addressed store, hash-verified

2210 self.assertIs(f("1"), None)
2211
2212 def test_patma_207(self):
2213 def f(w):
2214 match w:
2215 case [1, 2] | [3, 4]:
2216 out = locals()
2217 del out["w"]
2218 return out
2219 self.assertEqual(f([1, 2]), {})
2220 self.assertEqual(f([3, 4]), {})
2221 self.assertIs(f(42), None)
2222 self.assertIs(f([2, 3]), None)
2223 self.assertIs(f([1, 2, 3]), None)
2224 self.assertEqual(f([1, 2.0]), {})
2225
2226 def test_patma_208(self):
2227 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