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

Method test_isfile_invalid_paths

Lib/test/test_ntpath.py:1528–1533  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1526 self.assertPathEqual(ntpath.realpath('testjunc'), ntpath.realpath('tmpdir'))
1527
1528 def test_isfile_invalid_paths(self):
1529 isfile = ntpath.isfile
1530 self.assertIs(isfile('/tmp\udfffabcds'), False)
1531 self.assertIs(isfile(b'/tmp\xffabcds'), False)
1532 self.assertIs(isfile('/tmp\x00abcds'), False)
1533 self.assertIs(isfile(b'/tmp\x00abcds'), False)
1534
1535 @unittest.skipIf(sys.platform != 'win32', "drive letters are a windows concept")
1536 def test_isfile_driveletter(self):

Callers

nothing calls this directly

Calls 2

isfileFunction · 0.85
assertIsMethod · 0.45

Tested by

no test coverage detected