Xavier de Gaye added the comment: The test_logging cleanup problem induces another problem. When test_lib2to3 is run after the failing test_logging then test_lib2to3 fails with:
====================================================================== FAIL: test_filename_changing_on_output_single_dir (lib2to3.tests.test_main.TestMain) 2to3 a single directory with a new output dir and suffix. ---------------------------------------------------------------------- Traceback (most recent call last): File "/sdcard/org.bitbucket.pyona/lib/python3.7/lib2to3/tests/test_main.py", line 91, in test_file name_changing_on_output_single_dir self.py3_dest_dir, self.py2_src_dir), stderr) AssertionError: "Output in '/data/local/tmp/tmp4eyn96tg/python3_project' will mirror the input direc tory '/data/local/tmp/tmp4eyn96tg/python2_project' layout" not found in 'WARNING: --write-unchanged- files/-W implies -w.\n' ---------------------------------------------------------------------- Ran 616 tests in 140.986s FAILED (failures=1, expected failures=1) Warning -- logging._handlerList was modified by test_lib2to3 test test_lib2to3 failed It seems that this is related to the test_logging failure because the expected string "Output in '/data/local/tmp/tmp4eyn96tg/python3_project' will mirror the input directory '/data/local/tmp/tmp4eyn96tg/python2_project' layout" is output by logger.info() in Lib/lib2to3/main.py:243. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29177> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com