summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compileall.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge: #19532: make compileall with no file/dir args respect -f and -q.R David Murray2013-12-161-2/+23
|\
| * #19532: make compileall with no file/dir args respect -f and -q.R David Murray2013-12-161-0/+23
| | | | | | | | Patch by Vajrasky Kok.
| * Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-2/+1
| |
* | Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-2/+1
| |
* | Close #18754: Run Python child processes in isolated more in the test suite.Victor Stinner2013-10-121-1/+1
| |
* | Issue #17177: stop using imp for compileall.Brett Cannon2013-06-151-27/+23
|/
* fix test_compileall when run with -O[O]Benjamin Peterson2012-09-251-4/+12
|
* #11873: another try at fixing the regex, courtesy of Victor StinnerR David Murray2011-07-011-1/+1
|
* #11873: fix test regex so it covers windows os.sep as well.R David Murray2011-07-011-1/+1
|
* Issue #11169: compileall module uses repr() to format filenames and paths toVictor Stinner2011-05-101-1/+1
| | | | escape surrogate characters and show spaces.
* #11873: Improve test regex so random directory names don't cause test to failR David Murray2011-05-051-1/+1
|
* #11132: pass optimize parameter to recursive call in ↵Georg Brandl2011-02-071-0/+10
| | | | compileall.compile_dir(). Reviewed by Eric A.
* Make test_compileall more robust by using -S to keep sys.path minimized.R. David Murray2010-12-211-2/+2
| | | | | | | | | Try this again, hopefully the right way this time. Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo install because it was tyring to write .pyc files to a read-only system directory during test_no_args_compiles_path. Having the tests call python with -S should eliminate the system directories from the path.
* Revert incorrect patch made at the wrong time.R. David Murray2010-12-201-1/+1
|
* Make test_compileall more robust by using -S to keep sys.path minimized.R. David Murray2010-12-201-1/+1
| | | | | | | Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo install because it was tyring to write .pyc files to a read-only system directory during test_no_args_compiles_path. Having subprocess call python with -S should eliminate the system directories from the path.
* #10719: restore messages generated on invalid compileall argsR. David Murray2010-12-161-8/+17
| | | | | | | | 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.
* More comprehensive compileall cli tests, and fixes.R. David Murray2010-12-141-75/+156
|
* Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl2010-12-041-0/+9
| | | | and provide an interface to it in py_compile, compileall and PyZipFile.
* #10453 follow-up: Fix test_quiet on Windows, thanks to Stephan Krah.Éric Araujo2010-11-261-6/+8
|
* Fix one compileall test (#10453). Patch by Michele Orrù.Éric Araujo2010-11-221-1/+1
|
* Try to get more useful output from failing buildbotÉric Araujo2010-11-211-1/+1
|
* #10453: compileall now uses argparse instead of getopt, so -h works.R. David Murray2010-11-201-1/+53
| | | | Patch by Michele Orrù.
* #9964: fix running test_compileall under -O and -OO.Georg Brandl2010-10-141-20/+23
|
* Bug 8563 - compileall.compile_file() creates empty __pycache__ directories inBarry Warsaw2010-04-291-0/+13
| | | | | | | data directories where there is no source. Fix by: Arfrever Frehtes Taifersar Arahesis (Arfrever) Test by: Barry
* Bug 8527 - multiple compileall calls produce cascading __pycache__ directories.Barry Warsaw2010-04-261-0/+18
| | | | | | | | * Patch contributed by Arfrever Frehtes Taifersar Arahesis. * Test added by Barry Also, improve Makefile's deletion of __pycache__ directories so e.g. 'make distclean' doesn't fail if no __pycache__ directories exist.
* PEP 3147Barry Warsaw2010-04-171-10/+69
|
* Issue #6716/2: Backslash-replace error output in compilall.Martin v. Löwis2010-03-161-1/+25
|
* Merged revisions 78983,78985 via svnmerge fromMatthias Klose2010-03-161-0/+19
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78983 | matthias.klose | 2010-03-15 18:44:12 +0100 (Mo, 15 Mär 2010) | 2 lines - Issue #8140: extend compileall to compile single files. Add -i option. ........ r78985 | matthias.klose | 2010-03-15 19:00:01 +0100 (Mo, 15 Mär 2010) | 2 lines - Fix typo in Lib/compileall.py(__all__). ........
* Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-2/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* Merged revisions 69481 via svnmerge fromBrett Cannon2009-02-101-0/+63
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69481 | brett.cannon | 2009-02-09 18:07:38 -0800 (Mon, 09 Feb 2009) | 4 lines compileall used the ctime of bytecode and source to determine if the bytecode should be recreated. This created a timing hole. Fixed by just doing what import does; check the mtime and magic number. ........