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

Method test_is_char_device_false

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

Source from the content-addressed store, hash-verified

2776 self.assertIs((P / 'fileA\x00').is_block_device(), False)
2777
2778 def test_is_char_device_false(self):
2779 P = self.cls(self.base)
2780 self.assertFalse((P / 'fileA').is_char_device())
2781 self.assertFalse((P / 'dirA').is_char_device())
2782 self.assertFalse((P / 'non-existing').is_char_device())
2783 self.assertFalse((P / 'fileA' / 'bah').is_char_device())
2784 self.assertIs((P / 'fileA\udfff').is_char_device(), False)
2785 self.assertIs((P / 'fileA\x00').is_char_device(), False)
2786
2787 def test_is_char_device_true(self):
2788 # os.devnull should generally be a char device.

Callers

nothing calls this directly

Calls 4

assertFalseMethod · 0.80
is_char_deviceMethod · 0.80
clsMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected