Skip to content

gh-106162: fix test_array modifies warning filter - #106181

Merged
methane merged 1 commit into
python:mainfrom
methane:fix-test-array-warning-filter
Jun 28, 2023
Merged

gh-106162: fix test_array modifies warning filter#106181
methane merged 1 commit into
python:mainfrom
methane:fix-test-array-warning-filter

Conversation

@methane

@methanemethane commented Jun 28, 2023

Copy link
Copy Markdown
Member

@methane

Copy link
Copy Markdown
MemberAuthor
inada-n@PC-4524 ~/w/p/cpython (fix-test-array-warning-filter)> ./python.exe -m test test_array --fail-env-changed -m test.test_array.ArrayReconstructorTest.test_error
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 1.93 Run tests sequentially
0:00:00 load avg: 1.93 [1/1] test_array
== Tests result: SUCCESS ==
1 test OK.
Total duration: 36 ms
Tests result: SUCCESS

@sunmy2019sunmy2019 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, clever. I have been always wondering how to apply context manager to a test case.

@methane
methane merged commit a3dd8cc into python:mainJun 28, 2023
@methane
methane deleted the fix-test-array-warning-filter branch June 28, 2023 07:50
@AlexWaygoodAlexWaygood changed the title gh-106162: fix test_array modifies farning filtergh-106162: fix test_array modifies warning filterJun 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@methane@sunmy2019@bedevere-bot