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

Python process exiting abruptly on windows-2019 #70

Closed
jlaine opened this issue Mar 9, 2020 · 1 comment
Closed

Python process exiting abruptly on windows-2019 #70

jlaine opened this issue Mar 9, 2020 · 1 comment

Comments

@jlaine
Copy link

jlaine commented Mar 9, 2020

I have been porting several project test suites over to GitHub Actions, and I encountered a strange behaviour on the windows-2019 image: running a trivial unittest-based test suite, Python exits with an exit code of 1 after successfully running just a single test. This behaviour does not occur on Linux, OS X or windows-2016.

I have put together a minimal project (no dependencies, a trivial module which just defines __version__, and two trivial tests) with which systematically triggers the issue:

https://github.com/aiortc/unittest-ga

As you can see the test suite:

  • passes for all Python versions on OS X / Linux / Windows 2016
  • fails for all Python versions on Windows 2019

The error looks like:

test_first (tests.test_me.MyTest) ... ok
##[error]Process completed with exit code 1.
@jlaine
Copy link
Author

jlaine commented Mar 9, 2020

After some further investigation, the root cause may well be powershell. I'm not sure how it explains the different behaviour on Windows 2016 vs 2019, but adding shell: bash seems to fix the issue.

@jlaine jlaine closed this as completed Mar 9, 2020
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

No branches or pull requests

1 participant