Skip to content
Prev Previous commit
Next Next commit
add some debug prints
  • Loading branch information
berkerpeksag committed Aug 12, 2018
commit b834795619e3567b65f2b98b30279e0cf3f63d3f
6 changes: 6 additions & 0 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,12 @@ def test_readlink_pathlike(self):
import pathlib
os.symlink(self.filelink_target, self.filelink)
filelink = pathlib.Path(self.filelink)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FakePath is used for testing general support of the path protocol, not tied to pathlib.

print()
print('Debug prints:')
print('filelink:', filelink)
print('readlink:', os.readlink(filelink))
print('target:', self.filelink_target)
print()
self.assertEqual(os.readlink(filelink), self.filelink_target)

def _create_missing_dir_link(self):
Expand Down