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

gh-104012: Ensure test_calendar.CalendarTestCase.test_deprecation_warning consistently passes#104014

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

Merged
AlexWaygood merged 2 commits intopython:mainfromAlexWaygood:calendar-test
Apr 30, 2023

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygoodAlexWaygood commentedApr 30, 2023
edited by bedevere-bot
Loading

@bedevere-botbedevere-bot added the testsTests in the Lib/test dir labelApr 30, 2023
@AlexWaygoodAlexWaygood added skip news 3.12only security fixes labelsApr 30, 2023
classCalendarTestCase(unittest.TestCase):

deftest_deprecation_warning(self):
warnings.resetwarnings()

Choose a reason for hiding this comment

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

Why aren't we usingself.assertWarns?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I don't have a reason not to useself.assertWarns. I just made the minimal change to fix the issue. Looking through the previous PR, it doesn't look like usingassertWarns(Regex) was suggested, so the contributor may not have been aware of it.

Choose a reason for hiding this comment

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

Let's switch toassertWarnsRegex, then we don't have to do all this manual manipulation of the warnings machinery.

AlexWaygood reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

yeah, sounds good

@AlexWaygoodAlexWaygoodenabled auto-merge (squash)April 30, 2023 15:30
@AlexWaygoodAlexWaygood self-assigned thisApr 30, 2023
@AlexWaygoodAlexWaygood merged commit7d3931e intopython:mainApr 30, 2023
@AlexWaygoodAlexWaygood deleted the calendar-test branchApril 30, 2023 16:35
carljm added a commit to carljm/cpython that referenced this pull requestMay 1, 2023
* main: (26 commits)pythongh-104028: Reduce object creation while calling callback function from gc (pythongh-104030)pythongh-104036: Fix direct invocation of test_typing (python#104037)pythongh-102213: Optimize the performance of `__getattr__` (pythonGH-103761)pythongh-103895: Improve how invalid `Exception.__notes__` are displayed (python#103897)  Adjust expression from `==` to `!=` in alignment with the meaning of the paragraph. (pythonGH-104021)pythongh-88496: Fix IDLE test hang on macOS (python#104025)  Improve int test coverage (python#104024)pythongh-88773: Added teleport method to Turtle library (python#103974)pythongh-104015: Fix direct invocation of `test_dataclasses` (python#104017)pythongh-104012: Ensure test_calendar.CalendarTestCase.test_deprecation_warning consistently passes (python#104014)pythongh-103977: compile re expressions in platform.py only if required (python#103981)pythongh-98003: Inline call frames for CALL_FUNCTION_EX (pythonGH-98004)  Replace Netlify with Read the Docs build previews (python#103843)  Update name in acknowledgements and add mailmap (python#103696)pythongh-82054: allow test runner to split test_asyncio to execute in parallel by sharding. (python#103927)  Remove non-existing tools from Sundry skiplist (python#103991)pythongh-103793: Defer formatting task name (python#103767)pythongh-87092: change assembler to use instruction sequence instead of CFG (python#103933)pythongh-103636: issue warning for deprecated calendar constants (python#103833)  Various small fixes to dis docs (python#103923)  ...
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra approved these changes

@hugovkhugovkAwaiting requested review from hugovk

Assignees

@AlexWaygoodAlexWaygood

Labels

3.12only security fixesskip newstestsTests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

test_calendar fails on Azure Pipelines

3 participants

@AlexWaygood@JelleZijlstra@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp