Skip to content

Commit 3ea9617

Browse files
author
Release Manager
committed
gh-36218: src/bin/sage-env: set PYDEVD_DISABLE_FILE_VALIDATION=1 This fixes a doctest with newer versions of debugpy, as seen in in #36141 and #36129. Explanation in the commit message. URL: #36218 Reported by: Michael Orlitzky Reviewer(s): Matthias Köppe
2 parents f95e442 + 31a764f commit 3ea9617

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/bin/sage-env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,3 +635,11 @@ if [ -n "$SAGE_LOCAL" ]; then
635635
fi
636636

637637
fi
638+
639+
640+
# Newer versions of debugpy come with a bundled pydevd that complains
641+
# about >=python-3.11's core modules being frozen (and therefore not
642+
# breakpoint-able). This workaround simply hides the warning to keep
643+
# our doctests predictable (which was the status quo with earlier
644+
# versions of debugpy).
645+
export PYDEVD_DISABLE_FILE_VALIDATION=1

0 commit comments

Comments
 (0)