Message279018
According to the documentation and tests, a negative value for the “workers” parameter to compileall.compile_dir() should trigger ValueError. But if Python is built with “configure --without-threads”, the parameter is not checked. So I propose a patch to fix the implementation.
======================================================================
FAIL: test_compile_workers_non_positive (test.test_compileall.CompileallTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/proj/python/cpython/Lib/test/test_compileall.py", line 172, in test_compile_workers_non_positive
compileall.compile_dir(self.directory, workers=-1)
AssertionError: ValueError not raised |
|
Date |
User |
Action |
Args |
2016-10-20 07:39:19 | martin.panter | set | recipients:
+ martin.panter, Claudiu.Popa |
2016-10-20 07:39:19 | martin.panter | set | messageid: <1476949159.83.0.8638287974.issue28485@psf.upfronthosting.co.za> |
2016-10-20 07:39:19 | martin.panter | link | issue28485 messages |
2016-10-20 07:39:19 | martin.panter | create | |
|