New submission from Gabriele Tornetta <phoenix1...@gmail.com>:
The following script causes havoc on Windows while it works as expected on Linux ~~~ python import os import tempfile def test_chdir(): with tempfile.TemporaryDirectory() as tempdir: os.chdir(tempdir) ~~~ Running the above on Windows results in RecursionError: maximum recursion depth exceeded while calling a Python object (see attachment for the full stacktrace). ---------- components: Library (Lib) files: tempfile_st.txt messages: 384125 nosy: Gabriele Tornetta priority: normal severity: normal status: open title: tempfile doesn't seem to play nicely with os.chdir on Windows type: crash versions: Python 3.9 Added file: https://bugs.python.org/file49712/tempfile_st.txt _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42796> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com