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

Method test_is_fifo_true

Lib/test/test_pathlib/test_pathlib.py:2725–2735  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2723 @unittest.skipIf(sys.platform == "vxworks",
2724 "fifo requires special path on VxWorks")
2725 def test_is_fifo_true(self):
2726 P = self.cls(self.base, 'myfifo')
2727 try:
2728 os.mkfifo(str(P))
2729 except PermissionError as e:
2730 self.skipTest('os.mkfifo(): %s' % e)
2731 self.assertTrue(P.is_fifo())
2732 self.assertFalse(P.is_socket())
2733 self.assertFalse(P.is_file())
2734 self.assertIs(self.cls(self.base, 'myfifo\udfff').is_fifo(), False)
2735 self.assertIs(self.cls(self.base, 'myfifo\x00').is_fifo(), False)
2736
2737 def test_is_socket_false(self):
2738 P = self.cls(self.base)

Callers

nothing calls this directly

Calls 9

strFunction · 0.85
skipTestMethod · 0.80
assertTrueMethod · 0.80
is_fifoMethod · 0.80
assertFalseMethod · 0.80
is_socketMethod · 0.80
clsMethod · 0.45
is_fileMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected