forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytest: Remove valgrind opt-out via tests marker
Reviewing ElementsProject#4391 I noticed that we have a sneaky way of opting out of valgrind using the `slow_test` marker. I consider this dangerous as it causes a false sense of security ("this test is being run under valgrind" when really it isn't), as exemplified by some of the tests even branching on whether we run under valgrind or not. This is my attempt of making tests explicitly opt out of valgrind testing via the `@unittest.skipIf` decorator, which is more honest, as it doesn't run the test in a tweaked configuration, and reports a skipped test. The tests are all already being run on CI without valgrind, so we don't lose any coverage by this, but are more respectful of the resources we have on CI.
- Loading branch information
Showing
3 changed files
with
18 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters