You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which will return true, and not as the reader would expect, test the truth of that method having been called.
At Python 3.12 additional checks have been added, preventing this issue, but breaking the tests.
Investigate
Check whether the method under test should be called. I don't think that the state of the task should change - it should be waiting before and after so I suspect that this test shouldn't pass, and just needs correcting. We might want to test the task proxy's is_queued flag though.
It might be more sensible to run this as an integration test rather than a unit test.
The text was updated successfully, but these errors were encountered:
wxtim
added
bug
Something is wrong :(
question
Flag this as a question for the next Cylc project meeting.
labels
Nov 3, 2023
* add generic Python 3 (i.e. A bleeding edge version) to tests
* remove report timings from Python 3.12
* fix flake8 issues
* Commented out broken test lines (see #5812)
* replace smtpd with aiosmtpd in the test_header file
* fix tests
---------
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
Investigate replacing
tests/unit/test_indep_task_queues.py
with an integration test.Description
The code at
cylc-flow/tests/unit/test_indep_task_queues.py
Line 96 in 36a6ce9
Which will also pass!
As explained in python/cpython#100690 this is because up to Python 3.11
which will return true, and not as the reader would expect, test the truth of that method having been called.
At Python 3.12 additional checks have been added, preventing this issue, but breaking the tests.
Investigate
Check whether the method under test should be called. I don't think that the state of the task should change - it should be waiting before and after so I suspect that this test shouldn't pass, and just needs correcting. We might want to test the task proxy's
is_queued
flag though.It might be more sensible to run this as an integration test rather than a unit test.
The text was updated successfully, but these errors were encountered: