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

Method test_memlimit

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

Source from the content-addressed store, hash-verified

331 self.checkError([opt, 'all,-gui=0'], 'invalid resource: -gui=0')
332
333 def test_memlimit(self):
334 for opt in '-M', '--memlimit':
335 with self.subTest(opt=opt):
336 ns = self.parse_args([opt, '4G'])
337 self.assertEqual(ns.memlimit, '4G')
338 self.checkError([opt], 'expected one argument')
339
340 def test_testdir(self):
341 ns = self.parse_args(['--testdir', 'foo'])

Callers

nothing calls this directly

Calls 4

parse_argsMethod · 0.95
checkErrorMethod · 0.95
subTestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected