From 6b7cf258a8dddcf54baebac7c1655a70b732a588 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 8 Jun 2024 10:44:06 -0700 Subject: [PATCH] src/sage/features/__init__.py: Replace uses of absolute_path in doctests --- src/sage/features/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/features/__init__.py b/src/sage/features/__init__.py index 4594b806ae5..5c145adf21c 100644 --- a/src/sage/features/__init__.py +++ b/src/sage/features/__init__.py @@ -605,7 +605,7 @@ class FileFeature(Feature): To work with the file described by the feature, use the method :meth:`absolute_filename`. A :class:`FeatureNotPresentError` is raised if the file cannot be found:: - sage: Executable(name="does-not-exist", executable="does-not-exist-xxxxyxyyxyy").absolute_path() + sage: Executable(name="does-not-exist", executable="does-not-exist-xxxxyxyyxyy").absolute_filename() Traceback (most recent call last): ... sage.features.FeatureNotPresentError: does-not-exist is not available. @@ -737,7 +737,7 @@ def absolute_filename(self) -> str: A :class:`FeatureNotPresentError` is raised if the file cannot be found:: - sage: Executable(name="does-not-exist", executable="does-not-exist-xxxxyxyyxyy").absolute_path() + sage: Executable(name="does-not-exist", executable="does-not-exist-xxxxyxyyxyy").absolute_filename() Traceback (most recent call last): ... sage.features.FeatureNotPresentError: does-not-exist is not available.