Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: prefer unittest.mock from the standard library for Python >=3.8#793

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
a-detiste wants to merge1 commit intotwilio:main
base:main
Choose a base branch
Loading
froma-detiste:main

Conversation

a-detiste
Copy link

This keeps compatibility with Python3.7

@a-detistea-detiste changed the titleprefer unittest.mock from the standard library for Python >=3.8chore: prefer unittest.mock from the standard library for Python >=3.8May 23, 2024
@tiwarishubham635
Copy link
Contributor

tiwarishubham635 commentedMay 24, 2024
edited
Loading

I see your changes. So that means if we want to support python 3.7, then mock can't be used directly? In a sense, we'll still have the dependency on unittest. Is that right?

@a-detiste
Copy link
Author

a-detiste commentedMay 24, 2024 via email

Hi.It s a partial dependency.Distrubtions that don't support py3.7 can drop mock.There s a special syntax for setup.py/requirements.txt to says thisdependency only applies for Python version X, I don't use it actively but Ican find examples in other projectsLe ven. 24 mai 2024, 09:10, Shubham ***@***.***> a écrit :
I see your changes. So that means if we want to support python 3.7, then mock can't be used directly? In a sense, we'll still have a dependency. Is that right? — Reply to this email directly, view it on GitHub <#793 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB47WUFKU3EGCCWI7A3PAGTZD3RYDAVCNFSM6AAAAABIGMCJP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRYG42TENBUGY> . You are receiving this because you authored the thread.Message ID: ***@***.***>
tiwarishubham635 reacted with thumbs up emoji

@a-detiste
Copy link
Author

@tiwarishubham635 unittest is part of the standard library

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@a-detiste@tiwarishubham635

[8]ページ先頭

©2009-2025 Movatter.jp