New submission from Xinmeng Xia <xi...@smail.nju.edu.cn>:

The attached file "test_zipfile.py" is from test directory in cPython. We 
delete irrelevant code. Running this code on Python 3.10 will lead to the 
following error messages.
----------------------------------------------------------------------------------------
Exception ignored in: <generator object temp_dir at 0x7f13f30ff2e0>
Traceback (most recent call last):
  File "/usr/local/python310/lib/python3.10/test/support/os_helper.py", line 
401, in temp_dir
  File "/usr/local/python310/lib/python3.10/test/support/os_helper.py", line 
358, in rmtree
  File "/usr/local/python310/lib/python3.10/test/support/os_helper.py", line 
322, in _rmtree
ImportError: sys.meta_path is None, Python is likely shutting down
Exception ignored in: <generator object temp_dir at 0x7f13f30bd5f0>
Traceback (most recent call last):
  File "/usr/local/python310/lib/python3.10/test/support/os_helper.py", line 
401, in temp_dir
  File "/usr/local/python310/lib/python3.10/test/support/os_helper.py", line 
358, in rmtree
  File "/usr/local/python310/lib/python3.10/test/support/os_helper.py", line 
322, in _rmtree
ImportError: sys.meta_path is None, Python is likely shutting down
----------------------------------------------------------------------------------------
The expected output should be something like" ImportError: No module named XXX" 
 rather than "Python is likely shutting down"

----------
components: Interpreter Core
files: test_zipfile.py
messages: 384581
nosy: xxm
priority: normal
severity: normal
status: open
title: Fails to construct paths lead to "python is likely shutting down"
type: crash
versions: Python 3.10
Added file: https://bugs.python.org/file49725/test_zipfile.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42857>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to