Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print output when a subprocess runner with check=True fails. #78

Merged
merged 1 commit into from
May 26, 2023

Conversation

HexDecimal
Copy link
Collaborator

The raised exception from subprocess.run was suppressing the printed output. This is now fixed and covered by tests.

Also updates the test to use non-deprecated script runner parameters.

The raised exception from subprocess.run was suppressing the printed output.
This is now fixed and covered by tests.

Also updates the test to the non-deprecated version of the call.
@HexDecimal HexDecimal requested a review from kvas-it May 24, 2023 14:32
@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #78 (d6ad0f9) into master (db5bf30) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #78   +/-   ##
=======================================
  Coverage   99.53%   99.54%           
=======================================
  Files           1        1           
  Lines         214      218    +4     
=======================================
+ Hits          213      217    +4     
  Misses          1        1           
Impacted Files Coverage Δ
pytest_console_scripts/__init__.py 99.54% <100.00%> (+<0.01%) ⬆️

@kvas-it kvas-it merged commit 24ca589 into kvas-it:master May 26, 2023
@HexDecimal HexDecimal deleted the print-on-check-fail branch May 26, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants