Skip to content

Commit

Permalink
Fix inscrutable type bug.
Browse files Browse the repository at this point in the history
Somehow id(PythonInterpreter) != id(cls) on Travis interpreters.
  • Loading branch information
jsirois committed Sep 11, 2020
1 parent 47c23b5 commit ae95ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pex/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def iter_candidates(cls, paths=None):

def iter_interpreters():
for candidate in cls._find(cls._paths(paths=paths), error_handler=Retain()):
if isinstance(candidate, PythonInterpreter):
if isinstance(candidate, cls):
yield candidate
else:
python, exception = candidate
Expand Down

0 comments on commit ae95ab3

Please sign in to comment.