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

Test against 3.10 beta #1921

Merged
merged 34 commits into from Jun 15, 2021
Merged

Test against 3.10 beta #1921

merged 34 commits into from Jun 15, 2021

Conversation

altendky
Copy link
Member

@altendky altendky commented Mar 6, 2021

Draft for:

@codecov
Copy link

codecov bot commented Mar 6, 2021

Codecov Report

Merging #1921 (43e99f8) into master (6c0428b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1921   +/-   ##
=======================================
  Coverage   99.56%   99.56%           
=======================================
  Files         114      114           
  Lines       14618    14634   +16     
  Branches     1117     1118    +1     
=======================================
+ Hits        14554    14570   +16     
  Misses         43       43           
  Partials       21       21           
Impacted Files Coverage Δ
trio/_core/_multierror.py 98.90% <100.00%> (+0.02%) ⬆️
trio/_core/tests/test_guest_mode.py 100.00% <100.00%> (ø)
trio/_core/tests/test_run.py 100.00% <100.00%> (ø)
trio/_core/tests/tutil.py 96.92% <100.00%> (+0.31%) ⬆️
trio/tests/test_exports.py 97.22% <100.00%> (+0.07%) ⬆️
trio/tests/test_ssl.py 99.57% <100.00%> (+<0.01%) ⬆️
trio/tests/test_util.py 100.00% <100.00%> (ø)
trio/__init__.py 100.00% <0.00%> (ø)
trio/_core/_ki.py 100.00% <0.00%> (ø)
trio/testing/_sequencer.py 100.00% <0.00%> (ø)

@altendky
Copy link
Member Author

altendky commented Mar 8, 2021

I'm not really sure why typed-ast only fails on 3.10-dev and not 3.10 but python/typed_ast#156 seems related. Supposedly fixed on master, so, let's see.

@altendky altendky marked this pull request as ready for review June 10, 2021 19:15
ci.sh Outdated Show resolved Hide resolved
@graingert graingert requested a review from agronholm June 10, 2021 20:02
Copy link
Member

@njsmith njsmith left a comment

Choose a reason for hiding this comment

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

One question but it's not really important, I'm just curious. Feel free to merge when you're happy.

threading.excepthook, prev = threading.__excepthook__, threading.excepthook
else:
threading.excepthook, prev = _noop, threading.excepthook

Copy link
Member

Choose a reason for hiding this comment

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

This is mysterious :-). What's going on here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this was for disabling the thread hooks that pytest started using in 6.2 or so to catch and complain about uncaught exceptions in threads. In certain cases, IIRC, we literally have explanations in the code, or even the error messages, saying that yes, these will fall out un-handled in the thread or whatever but that that's the way it is and we know. But @graingert did this bit. The added bit here is to use the 'original' excepthook instead of a noop when it is available (in 3.10). This additional feature in 3.10 let's this code be more consistent with the restore_unraisablehook() above.

Hopefully that's in the direction you were wondering about...

Copy link
Contributor

@agronholm agronholm left a comment

Choose a reason for hiding this comment

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

LGTM. I don't fully understand the logic in the CI workflow where the Python version is selected, so hopefully someone else can review that :)

@njsmith njsmith merged commit 2896105 into python-trio:master Jun 15, 2021
@pquentin pquentin changed the title Test against 3.10 alpha Test against 3.10 beta Jun 15, 2021
@altendky
Copy link
Member Author

@agronholm, yeah, coding if statements via JSON is... not the most obvious. Not one of GitHub Action's strong points.

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

5 participants