Skip to content

Conversation

@methane
Copy link
Member

@methanemethane commented Jun 28, 2023

@methane
Copy link
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 

Copy link
Member

@sunmy2019sunmy2019 left a comment

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.

@methanemethane merged commit a3dd8cc into python:mainJun 28, 2023
@methanemethane 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