exit code retrieval: more robust logic#152
Conversation
|
(Note: out of date, keeping for reference) Relevant commits that have touched this line before: |
|
I wonder if it's better to do for example, conda will do: and then we have |
|
I see, thank you for pointing his out. I will amend this PR |
Using pytest: - test for the ordinary case - test for the conda case, mocking effect of conda env on prompt
|
With this new information, I have changed the logic.
I have also added a couple of test cases to test the function I have created. I am generally in favour of automated tests, but since in this particular case I am not sure how useful they can be and how much clutter they add, I put them in a separate commit so that they can be removed easily if the maintainers decide so. |
fixes #151