cpython/Lib/test/test_inspect
Serhiy Storchaka 5a57248b22
gh-81793: Always call linkat() from os.link(), if available (GH-132517)
This fixes os.link() on platforms (like Linux and OpenIndiana) where the
system link() function does not follow symlinks.

* On Linux, it now follows symlinks by default and if
  follow_symlinks=True is specified.
* On Windows, it now raises error if follow_symlinks=True is passed.
* On macOS, it now raises error if follow_symlinks=False is passed and
  the system linkat() function is not available at runtime.
* On other platforms, it now raises error if follow_symlinks is passed
  with a value that does not match the system link() function behavior
  if if the behavior is not known.

Co-authored-by: Joachim Henke <37883863+jo-he@users.noreply.github.com>
Co-authored-by: Thomas Kluyver <takowl@gmail.com>
2025-05-04 17:24:10 +03:00
..
__init__.py
inspect_deferred_annotations.py
inspect_fodder.py
inspect_fodder2.py
inspect_stock_annotations.py
inspect_stringized_annotations.py
inspect_stringized_annotations_2.py
inspect_stringized_annotations_pep695.py
test_inspect.py gh-81793: Always call linkat() from os.link(), if available (GH-132517) 2025-05-04 17:24:10 +03:00