This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients Claudiu.Popa, martin.panter
Date 2016-10-20.07:39:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476949159.83.0.8638287974.issue28485@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-10-20 07:39:19martin.pantersetrecipients: + martin.panter, Claudiu.Popa
2016-10-20 07:39:19martin.pantersetmessageid: <1476949159.83.0.8638287974.issue28485@psf.upfronthosting.co.za>
2016-10-20 07:39:19martin.panterlinkissue28485 messages
2016-10-20 07:39:19martin.pantercreate