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

Method test_access

Lib/test/test_os/test_os.py:187–190  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

185 tearDown = setUp
186
187 def test_access(self):
188 f = os.open(os_helper.TESTFN, os.O_CREAT|os.O_RDWR)
189 os.close(f)
190 self.assertTrue(os.access(os_helper.TESTFN, os.W_OK))
191
192 @unittest.skipIf(
193 support.is_wasi, "WASI does not support dup."

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
accessMethod · 0.80
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected