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

Using ignore_exception with until_asserted raising an AttributionError #54

Open
rockem opened this issue Mar 2, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@rockem
Copy link
Owner

rockem commented Mar 2, 2024

Current behaviour

When using ignore_exception() feature with until_asserted, we get this error:

Traceback (most recent call last):
  File "/Users/elisegal/Source/busypie/tests/spike.py", line 14, in <module>
    wait().ignore_exceptions(ZeroDivisionError).at_most(100, MILLISECOND).until_asserted(_failed_assertion)
  File "/Users/elisegal/Source/busypie/busypie/condition.py", line 70, in until_asserted
    self._condition.append_exception(AssertionError)
  File "/Users/elisegal/Source/busypie/busypie/condition.py", line 98, in append_exception
    self.ignored_exceptions.append(exception)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'append'

Expected behaviour

ignore_exceptions should work the same as with until & during

@rockem rockem added the bug Something isn't working label Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant