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

Method test_keyword_only

Lib/test/test_tarfile.py:3306–3309  ·  view source on GitHub ↗
(self, mock_geteuid)

Source from the content-addressed store, hash-verified

3304
3305 @unittest.mock.patch('os.geteuid')
3306 def test_keyword_only(self, mock_geteuid):
3307 with self._setup_test(mock_geteuid) as (tarfl, filename_1, _, _):
3308 self.assertRaises(TypeError,
3309 tarfl.extract, filename_1, TEMPDIR, False, True)
3310
3311
3312class ReplaceTests(ReadTest, unittest.TestCase):

Callers

nothing calls this directly

Calls 2

_setup_testMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected