summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-10-15 09:26:13 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-10-15 09:26:13 (GMT)
commiteb1dda2b56f67f09352c303588c28880c471ae87 (patch)
tree210de1a151a566aa36935b36280811a8e2867040 /Misc
parent0b60f64e4343913b4931dc27379d9808e5b78fe1 (diff)
downloadcpython-eb1dda2b56f67f09352c303588c28880c471ae87.zip
cpython-eb1dda2b56f67f09352c303588c28880c471ae87.tar.gz
cpython-eb1dda2b56f67f09352c303588c28880c471ae87.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2019-10-14-22-46-35.bpo-38470.NHtzpy.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-10-14-22-46-35.bpo-38470.NHtzpy.rst b/Misc/NEWS.d/next/Tests/2019-10-14-22-46-35.bpo-38470.NHtzpy.rst
new file mode 100644
index 0000000..bb4710f
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-10-14-22-46-35.bpo-38470.NHtzpy.rst
@@ -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.