Skip to content

Conversation

cladmi
Copy link
Contributor

@cladmi cladmi commented Mar 1, 2019

Contribution description

This silents the reported issue in codacy about python asserts:

Use of assert detected. The enclosed code will be removed when
compiling to optimised byte code.

The concern is valid about python asserts, but they are used in tests
and python is not run with optimised byte code.

Solution taken from codacy website
https://support.codacy.com/hc/en-us/articles/207994335-Code-Patterns

Testing procedure

This silents the issue from #10952 (comment) where I now have this commit too.

Issues/PRs references

Found about codacy complains in #10952 (comment)

This silents the reported issue in codacy about python asserts:

    Use of assert detected. The enclosed code will be removed when
    compiling to optimised byte code.

The concern is valid about python asserts, but they are used in tests
and python is not run with optimised byte code.

Solution taken from codacy website
https://support.codacy.com/hc/en-us/articles/207994335-Code-Patterns
@cladmi cladmi added Area: tests Area: tests and testing framework CI: run tests If set, CI server will run tests on hardware for the labeled PR labels Mar 1, 2019
@cladmi cladmi mentioned this pull request Mar 1, 2019
2 tasks
@cladmi cladmi requested a review from jia200x March 4, 2019 11:51
@jia200x jia200x added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 4, 2019
@jia200x
Copy link
Member

jia200x commented Mar 4, 2019

The solution makes sense. Thanks

Copy link
Member

@jia200x jia200x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Murdock green and GO

@cladmi
Copy link
Contributor Author

cladmi commented Mar 4, 2019

Thank you for the review :)

@cladmi cladmi merged commit 622645d into RIOT-OS:master Mar 4, 2019
@cladmi cladmi deleted the pr/codacy/python_asserts branch March 4, 2019 12:29
@danpetry danpetry added this to the Release 2019.04 milestone Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: run tests If set, CI server will run tests on hardware for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants