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

Method test_single

Lib/test/test_regrtest.py:226–231  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

224 self.assertTrue(ns.exclude)
225
226 def test_single(self):
227 for opt in '-s', '--single':
228 with self.subTest(opt=opt):
229 ns = self.parse_args([opt])
230 self.assertTrue(ns.single)
231 self.checkError([opt, '-f', 'foo'], "don't go together")
232
233 def test_match(self):
234 for opt in '-m', '--match':

Callers

nothing calls this directly

Calls 4

parse_argsMethod · 0.95
checkErrorMethod · 0.95
assertTrueMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected