-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
fix test regexes for musl libc #2917
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2917 +/- ##
=======================================
Coverage 99.67% 99.67%
=======================================
Files 115 115
Lines 17308 17308
Branches 3109 3109
=======================================
Hits 17252 17252
Misses 38 38
Partials 18 18
|
Where did you run into this? (So we can add that to CI!) |
WHY is this using regexes. OSError literally has an |
It's using regexes because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this, we should really add CI testing for this platform!
Disapprove of the tone. And scrolling through the file it looks like pretty much all tests does check the |
some quick searching for "musl libc": So seems like the easiest way is to add Alpine Linux to the CI. Perhaps something like https://github.com/marketplace/actions/setup-alpine-linux-environment |
Upgrading Since void linux is rolling release, alpine is probably easiest to implement. |
Yeah I was confused cause we should be running Alpine but then I remembered our sr.ht CI stuff stopped working... I agree that it's somewhat strange that we check the strings via regex rather than check errnos but this is also tests and tbh being more strict is fine. (I note that the 2nd and 3rd error doesn't have one specific errno... and IMO it's easier to look at a test and see "Socket not connected" than see "107" and have to do another lookup or potentially have an out-of-date comment). |
Hey @tornaria, it looks like that was the first time we merged one of your PRs! Thanks so much! 🎉 🎂 If you want to keep contributing, we'd love to have you. So, I just sent you an invitation to join the python-trio organization on Github! If you accept, then here's what will happen:
If you want to read more, here's the relevant section in our contributing guide. Alternatively, you're free to decline or ignore the invitation. You'll still be able to contribute as much or as little as you like, and I won't hassle you about joining again. But if you ever change your mind, just let us know and we'll send another invitation. We'd love to have you, but more importantly we want you to do whatever's best for you. If you have any questions, well... I am just a humble Python script, so I probably can't help. But please do post a comment here, or in our chat, or on our forum, whatever's easiest, and someone will help you out! |
Error messages are slightly different when using musl libc.
The new regexes fix that.