Skip to content

Commit

Permalink
sagemathgh-36218: src/bin/sage-env: set PYDEVD_DISABLE_FILE_VALIDATION=1
Browse files Browse the repository at this point in the history
    
This fixes a doctest with newer versions of debugpy, as seen in in
sagemath#36141 and
sagemath#36129. Explanation in the commit
message.
    
URL: sagemath#36218
Reported by: Michael Orlitzky
Reviewer(s): Matthias Köppe
  • Loading branch information
Release Manager committed Sep 13, 2023
2 parents 51962dd + 31a764f commit 7c5a6af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bin/sage-env
Original file line number Diff line number Diff line change
Expand Up @@ -635,3 +635,11 @@ if [ -n "$SAGE_LOCAL" ]; then
fi

fi


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

0 comments on commit 7c5a6af

Please sign in to comment.