crash when sys.stdin
is None
in subversion.py
#7119
Labels
auto-locked
Outdated issues that have been locked by automation
kind: crash
For situations where pip crashes
resolution: wrong project
Should be reported elsewhere
type: enhancement
Improvements to functionality
Environment
Description
The code that determines if to use interactive mode in subversion.py breaks when
sys.stdin
isNone
Expected behavior
Does not crash.
How to Reproduce
(On linux)
virtualenv -p python3 env
source env/bin/activate
python -c 'import pip._internal as pip' 0<&-
(this simulates aNone
sys.stdin
)Output
Notes
And in case you're wondering how I got to this internal API: I'm running (on AWS Lambda) awslimitchecker, which uses versionfinder, which uses pip
The text was updated successfully, but these errors were encountered: