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

tests: reorder to unpin pytest #3598

Closed
wants to merge 1 commit into from

Conversation

rominf
Copy link
Contributor

@rominf rominf commented Oct 2, 2024

Fix: #3035

Rearrange test items so that forked tests come before normal tests
within their respective modules.
Swap the last forked test with the last normal test if necessary.

Workaround to unpin pytest. See:
pytest-dev/pytest#9621,
pytest-dev/pytest-forked#67, and specifically:
pytest-dev/pytest-forked#67 (comment)


Thank you for contributing to sentry-python! Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval. The AWS Lambda tests additionally require a maintainer to add a special label, and they will fail until this label is added.

Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.23%. Comparing base (5080c76) to head (2627a60).
Report is 55 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3598      +/-   ##
==========================================
- Coverage   84.34%   84.23%   -0.11%     
==========================================
  Files         133      133              
  Lines       13929    13929              
  Branches     2938     2938              
==========================================
- Hits        11748    11733      -15     
- Misses       1443     1458      +15     
  Partials      738      738              

see 6 files with indirect coverage changes

Fix: getsentry#3035

Rearrange test items so that forked tests come before normal tests
within their respective modules.
Swap the last forked test with the last normal test if necessary.

Workaround to unpin pytest. See:
pytest-dev/pytest#9621,
pytest-dev/pytest-forked#67, and specifically:
pytest-dev/pytest-forked#67 (comment)
@rominf rominf force-pushed the rominf-unpin-pytest branch from 3644077 to 2627a60 Compare October 2, 2024 14:20
@rominf rominf marked this pull request as draft October 2, 2024 14:27
@rominf
Copy link
Contributor Author

rominf commented Oct 2, 2024

By some reason approach does not work on Python 3.6, Python 3.7 (works on later versions of Python). I will investigate.

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.

Unpin pytest
2 participants