Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-106162: fix test_array modifies warning filter #106181

Merged
merged 1 commit into from
Jun 28, 2023

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