BPO | [41007](https://bugs.python.org/issue41007) --- | :--- Nosy | @vstinner, @srinivasreddy *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = created_at = labels = ['tests', '3.10'] title = 'test_importlib logs ResourceWarning: test_path.CommonTests.test_importing_module_as_side_effect()' updated_at = user = 'https://github.com/vstinner' ``` bugs.python.org fields: ```python activity = actor = 'vstinner' assignee = 'none' closed = True closed_date = closer = 'vstinner' components = ['Tests'] creation = creator = 'vstinner' dependencies = [] files = [] hgrepos = [] issue_num = 41007 keywords = [] message_count = 4.0 messages = ['371743', '372761', '372762', '372770'] nosy_count = 2.0 nosy_names = ['vstinner', 'thatiparthy'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue41007' versions = ['Python 3.10'] ```
Activity
vstinner commentedon Jun 17, 2020
It seems like the issue was introduced in bpo-39791 by:
commit 843c277
Author: Jason R. Coombs <jaraco@jaraco.com>
Date: Sun Jun 7 21:00:51 2020 -0400
The warning:
Ran 1 test in 0.134s
OK
== Tests result: SUCCESS ==
1 test OK.
Total duration: 6.2 sec
Tests result: SUCCESS
srinivasreddy commentedon Jul 1, 2020
I can repro on 843c277 but I have tried this on latest master d0981e6 and I do not see the warning.
can be closed?
srinivasreddy commentedon Jul 1, 2020
(allhub) ➜ cpython git:(master) ✗ ./python.exe -X tracemalloc=20 -m test test_importlib -m test.test_importlib.test_path.CommonTests.test_importing_module_as_side_effect -v
== CPython 3.10.0a0 (heads/master:d0981e61a5, Jul 1 2020, 21:25:34) [Clang 11.0.3 (clang-1103.0.32.62)]
== macOS-10.15.5-x86_64-i386-64bit little-endian
== cwd: /Users/srini/workspace/consulting/cpython/build/test_python_1601æ
== CPU count: 12
== encodings: locale=UTF-8, FS=utf-8
0:00:00 load avg: 2.06 Run tests sequentially
0:00:00 load avg: 2.06 [1/1] test_importlib
test_importing_module_as_side_effect (test.test_importlib.test_path.CommonTests) ... ok
----------------------------------------------------------------------
Ran 1 test in 0.061s
OK
== Tests result: SUCCESS ==
1 test OK.
Total duration: 6.5 sec
Tests result: SUCCESS
vstinner commentedon Jul 1, 2020
Alright, this issue was fixed by:
commit 2fb5f03 (HEAD)
Author: Jason R. Coombs <jaraco@jaraco.com>
Date: Mon Jun 29 16:59:22 2020 -0400