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

More 1.9 changes #3878

Open
wants to merge 4 commits into
base: stable/1.9
Choose a base branch
from
Open

Conversation

ktbarrett
Copy link
Member

@ktbarrett ktbarrett commented May 3, 2024

Update FutureWarning when Tasks throw an exception. The current behavior is the opposite of what's going to happen in 2.0. Also close #3845. Also backports #3879 and #3868.

  • newsfrag
  • update tests

@ktbarrett ktbarrett force-pushed the more-1.9-changes branch 2 times, most recently from c7bf538 to 0a2431b Compare May 3, 2024 06:35
@ktbarrett ktbarrett requested a review from a team May 3, 2024 06:36
@ktbarrett ktbarrett marked this pull request as ready for review May 3, 2024 06:36
@@ -721,7 +721,15 @@ def __init__(self, coroutine):

@property
def _outcome(self):
return self._coroutine._outcome
outcome = self._coroutine._outcome
if type(self._coroutine) is Task and isinstance(outcome, outcomes.Error):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have to explicitly check for Task so that all @cocotb.coroutine "tasks" don't issue this warning.

@ktbarrett ktbarrett force-pushed the more-1.9-changes branch 2 times, most recently from 73f24c4 to 1235d6b Compare May 7, 2024 04:00
Copy link

codecov bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 52.38095% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 64.49%. Comparing base (8acffb4) to head (16a222d).

Files Patch % Lines
cocotb/binary.py 53.84% 5 Missing and 1 partial ⚠️
cocotb/runner.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           stable/1.9    #3878      +/-   ##
==============================================
- Coverage       64.79%   64.49%   -0.30%     
==============================================
  Files              49       49              
  Lines            9131     9142      +11     
  Branches         2461     2469       +8     
==============================================
- Hits             5916     5896      -20     
- Misses           2627     2652      +25     
- Partials          588      594       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ktbarrett ktbarrett force-pushed the more-1.9-changes branch 4 times, most recently from b14cc6e to 64f207f Compare May 7, 2024 05:29
ktbarrett and others added 4 commits May 6, 2024 23:58
Had to fix a number of tests in test_timing_triggers because of
propagation of warnings as exceptions. Chucked a couple tests that were
testing the thing we were removing and the awful
test_readwrite_in_readonlhy.
Also deprecate with an explicit warning the .value attribute that was
deprecated in the documentation only.
Calls to find_libpython.find_libpython() may return an empty string or
None if libpython was not properly installed. This was causing a
TypeError exception to be thrown with a non-obvious error message. The
value returned by find_libpython.find_libpython() is now checked and
if not found a more helpful error message is provided.
@ktbarrett
Copy link
Member Author

Waiting on outcome of whether the python installation requirements are correct.

@ktbarrett ktbarrett added this to the 1.9 milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant