]> granicus.if.org Git - python/commit
bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789)
authorVictor Stinner <vstinner@redhat.com>
Tue, 15 Oct 2019 09:26:13 +0000 (11:26 +0200)
committerPetr Viktorin <encukou@gmail.com>
Tue, 15 Oct 2019 09:26:13 +0000 (11:26 +0200)
commiteb1dda2b56f67f09352c303588c28880c471ae87
tree210de1a151a566aa36935b36280811a8e2867040
parent0b60f64e4343913b4931dc27379d9808e5b78fe1
bpo-38470: Fix test_compileall.test_compile_dir_maxlevels() (GH-16789)

Fix test_compile_dir_maxlevels() on Windows without long path
support: only create 3 subdirectories instead of between 20 and 100
subdirectories.

Fix also compile_dir() to use the current sys.getrecursionlimit()
value as the default maxlevels value, rather than using
sys.getrecursionlimit() value read at startup.
Lib/compileall.py
Lib/test/test_compileall.py
Misc/NEWS.d/next/Tests/2019-10-14-22-46-35.bpo-38470.NHtzpy.rst [new file with mode: 0644]