Closed cclauss closed 2 years ago
Totals | |
---|---|
Change from base Build 3279663869: | 0.0% |
Covered Lines: | 7301 |
Relevant Lines: | 7301 |
Also, if you have not done so already, please send an email to info@projectq.ch to request the ProjectQ license agreement that you'll have to sign before we can merge this PR.
% pytest
...
projectq/cengines/_withflushing_test.py .. [ 58%]
...
Looks good to me. Now before I can merge this, I do need to have you sign the ProjectQ CLA.
EDIT: I just saw your email in the ProjectQ mailbox and the person responsible for it will contact you shortly.
Thanks for the contribution!
Simplify the creation, use, and flushing of any Engine using a Python context manager.
When exiting the
with
block, the engine is automatically flushed.Just like auto-closing of files:
Modeled after https://docs.python.org/3/library/contextlib.html#contextlib.closing