Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@methane
Copy link
Member

@methane methane commented Jun 28, 2023

@methane
Copy link
Member Author

methane commented Jun 28, 2023

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

@sunmy2019 sunmy2019 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.

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

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants