]> granicus.if.org Git - python/commit
#10719: restore messages generated on invalid compileall args
authorR. David Murray <rdmurray@bitdance.com>
Thu, 16 Dec 2010 19:08:51 +0000 (19:08 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 16 Dec 2010 19:08:51 +0000 (19:08 +0000)
commit5317e9cd8dc4bf1f02eb9144acb119673d537387
tree7b89da90a5d01a62d749b7f976438d14bd762fa6
parent20f0fb68aa24876abf768292b33cda138237ff6c
#10719: restore messages generated on invalid compileall args

Before the introduction of filename arguments to compileall it gave semi useful
messages about not being able to 'list' names that weren't valid directories.
This fix restores that behavior.  In addition to the test for this case, the
patch also adds a test for the default behavior of compileall when no arguments
are provided, and fixes a bug in one of the previously added tests.
Lib/compileall.py
Lib/test/test_compileall.py