Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Jan 20, 2021

I came up to this when preparing the tutorials. Currently you can't write sn.assert_found('r'something', sn.print(self.stdout)), because sn.print() would return you a tuple, which you would need to unpack. But if you try to unpack, you trigger the evaluation of the deferred expression, which you don't want. So the sanity version of the print is restricted to getting a single object only.

@vkarak vkarak added this to the ReFrame sprint 21.01 milestone Jan 20, 2021
@vkarak vkarak requested a review from teojgo January 20, 2021 15:52
@vkarak vkarak self-assigned this Jan 20, 2021
@pep8speaks
Copy link

pep8speaks commented Jan 20, 2021

Hello @vkarak, Thank you for updating!

Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide

Comment last updated at 2021-01-20 15:53:20 UTC

@vkarak vkarak merged commit 74f009f into reframe-hpc:master Jan 20, 2021
@vkarak vkarak deleted the bugfix/sanity-print-function branch January 20, 2021 16:02
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.

3 participants