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

remove tests/__init__.py #7863

Merged
merged 1 commit into from
Nov 22, 2023
Merged

remove tests/__init__.py #7863

merged 1 commit into from
Nov 22, 2023

Conversation

dotlambda
Copy link
Contributor

What do these changes do?

fixes #7858

Are there changes in behavior for the user?

Related issue number

#7858

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@dotlambda dotlambda requested a review from asvetlov as a code owner November 21, 2023 20:50
@Dreamsorcerer
Copy link
Member

I think there's some contention here between mypy and a preference to not have this file. Mypy refuses to allow configuration in a directory if the file is not present (because it only configures 'modules', even though it'll check the files which are not in modules...). python/mypy#10045

I'll merge this for now, but I may need to reintroduce the file as I complete the typing on tests in future PRs.

@Dreamsorcerer Dreamsorcerer added bot:chronographer:skip This PR does not need to include a change note backport-3.9 labels Nov 22, 2023
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ccf74bb) 97.40% compared to head (aec1bdd) 97.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7863      +/-   ##
==========================================
- Coverage   97.40%   97.40%   -0.01%     
==========================================
  Files         106      107       +1     
  Lines       32164    32190      +26     
  Branches     3739     3740       +1     
==========================================
+ Hits        31329    31354      +25     
- Misses        631      632       +1     
  Partials      204      204              
Flag Coverage Δ
CI-GHA 97.31% <ø> (-0.01%) ⬇️
OS-Linux 96.98% <ø> (-0.01%) ⬇️
OS-Windows 95.48% <ø> (-0.01%) ⬇️
OS-macOS 96.66% <ø> (-0.01%) ⬇️
Py-3.10.11 95.40% <ø> (-0.01%) ⬇️
Py-3.10.13 96.84% <ø> (-0.02%) ⬇️
Py-3.11.6 96.50% <ø> (-0.01%) ⬇️
Py-3.12.0 96.57% <ø> (-0.01%) ⬇️
Py-3.8.10 95.37% <ø> (-0.01%) ⬇️
Py-3.8.18 96.77% <ø> (-0.01%) ⬇️
Py-3.9.13 95.37% <ø> (-0.01%) ⬇️
Py-3.9.18 96.81% <ø> (-0.01%) ⬇️
Py-pypy7.3.13 96.26% <ø> (-0.01%) ⬇️
VM-macos 96.66% <ø> (-0.01%) ⬇️
VM-ubuntu 96.98% <ø> (-0.01%) ⬇️
VM-windows 95.48% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@webknjaz
Copy link
Member

@Dreamsorcerer pretty sure I was able to run mypy against tests w/ the implicit package mode. In general, putting init in the folder let's people do relative imports in the tests, but I don't think we should use this.

@Dreamsorcerer
Copy link
Member

@Dreamsorcerer pretty sure I was able to run mypy against tests w/ the implicit package mode. In general, putting init in the folder let's people do relative imports in the tests, but I don't think we should use this.

The tests run, you just can't configure them in .mypy.ini (see the issue I linked). It doesn't look like any test-specific config got merged in yet, I'll see what happens when I resume adding typing to the remaining tests.

@Dreamsorcerer Dreamsorcerer merged commit 3a21134 into aio-libs:master Nov 22, 2023
28 of 32 checks passed
Copy link
Contributor

patchback bot commented Nov 22, 2023

Backport to 3.9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.9/3a21134a0e3e8a163faa7436383e92da08415f13/pr-7863

Backported as #7870

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 22, 2023
(cherry picked from commit 3a21134)
Copy link
Contributor

patchback bot commented Nov 22, 2023

Backport to 3.10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.10/3a21134a0e3e8a163faa7436383e92da08415f13/pr-7863

Backported as #7871

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 22, 2023
(cherry picked from commit 3a21134)
Dreamsorcerer pushed a commit that referenced this pull request Nov 22, 2023
**This is a backport of PR #7863 as merged into master
(3a21134).**

<!-- Thank you for your contribution! -->

## What do these changes do?
fixes #7858
<!-- Please give a short brief about these changes. -->

## Are there changes in behavior for the user?

<!-- Outline any notable behaviour for the end users. -->

## Related issue number
#7858
<!-- Are there any issues opened that will be resolved by merging this
change? -->

## Checklist

- [ ] I think the code is well written
- [ ] Unit tests for the changes exist
- [ ] Documentation reflects the changes
- [ ] If you provide code modification, please add yourself to
`CONTRIBUTORS.txt`
  * The format is &lt;Name&gt; &lt;Surname&gt;.
  * Please keep alphabetical order, the file is sorted by names.
- [ ] Add a new news fragment into the `CHANGES` folder
  * name it `<issue_id>.<type>` for example (588.bugfix)
* if you don't have an `issue_id` change it to the pr id after creating
the pr
  * ensure type is one of the following:
    * `.feature`: Signifying a new feature.
    * `.bugfix`: Signifying a bug fix.
    * `.doc`: Signifying a documentation improvement.
    * `.removal`: Signifying a deprecation or removal of public API.
* `.misc`: A ticket has been closed, but it is not of interest to users.
* Make sure to use full sentences with correct case and punctuation, for
example: "Fix issue with non-ascii contents in doctest text files."

Co-authored-by: Robert Schütz <[email protected]>
Dreamsorcerer pushed a commit that referenced this pull request Nov 22, 2023
**This is a backport of PR #7863 as merged into master
(3a21134).**

Co-authored-by: Robert Schütz <[email protected]>
@dotlambda dotlambda deleted the fix-7858 branch November 23, 2023 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:skip This PR does not need to include a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failures on aiohttp 3.9.0
3 participants