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

Method test_link

Lib/test/test_stat.py:183–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181
182 @os_helper.skip_unless_symlink
183 def test_link(self):
184 try:
185 os.symlink(os.getcwd(), TESTFN)
186 except (OSError, NotImplementedError) as err:
187 raise unittest.SkipTest(str(err))
188 else:
189 st_mode, modestr = self.get_mode()
190 self.assertEqual(modestr[0], 'l')
191 self.assertS_IS("LNK", st_mode)
192
193 @unittest.skipUnless(hasattr(os, 'mkfifo'), 'os.mkfifo not available')
194 def test_fifo(self):

Callers

nothing calls this directly

Calls 4

get_modeMethod · 0.95
assertS_ISMethod · 0.95
strFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected