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

unity.py: fixing whitespace issue when running tests with -Wpedantic #4671

Closed
wants to merge 1 commit into from

Conversation

MacDada
Copy link
Contributor

@MacDada MacDada commented Jun 18, 2023

pio test

[…]

Library Manager: Installing throwtheswitch/Unity @ ^2.5.2
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
.pio/build/native/unity_config/unity_config.c:44:5: warning: no newline at end of file [-Wnewline-eof]

    ^
1 warning generated.
Testing...

There used to be a blank line with 4 spaces in the generated code -> strip(' ') removes the spaces, leaving the blank line intact.

…` flag

```
Library Manager: Installing throwtheswitch/Unity @ ^2.5.2
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
.pio/build/native/unity_config/unity_config.c:44:5: warning: no newline at end of file [-Wnewline-eof]

    ^
1 warning generated.
Testing...
```

In the generated code, there used to be a blank line with 4 spaces -> `strip(' ')` removes the spaces, leaving the blank line intact.
@MacDada
Copy link
Contributor Author

MacDada commented Jun 18, 2023

I don't think the build issues are related to the PR.

@ivankravets
Copy link
Member

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants