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.
This commit is contained in:
Victor Stinner 2019-10-15 11:26:13 +02:00 committed by Petr Viktorin
parent 0b60f64e43
commit eb1dda2b56
3 changed files with 23 additions and 64 deletions

View file

@ -0,0 +1,3 @@
Fix ``test_compileall.test_compile_dir_maxlevels()`` on Windows without long
path support: only create 3 subdirectories instead of between 20 and 100
subdirectories.