summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools.py
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using scrdir, it's broken.Antoine Pitrou2012-06-271-2/+2
|
* Fix bug in test_tools that prevented building is separate directory.Neil Schemenauer2012-06-271-1/+1
| | | | | | Use 'srcdir' from sysconfig instead of 'projectbase' to build a path to the Tools directory. 'projectbase' is the path of the build directory, not the source directory.
* Issue #14742: test_unparse now only checks a limited number of files unless ↵Mark Dickinson2012-06-231-0/+1
| | | | the 'cpu' resource is specified.
* Issue #13959: HaveBrett Cannon2012-05-111-3/+5
| | | | | | | | | | importlib.abc.FileLoader.load_module()/get_filename() and importlib.machinery.ExtensionFileLoader.load_module() have their single argument be optional as the loader's constructor has all the ncessary information. This allows for the deprecation of imp.load_source()/load_compile()/load_package().
* Issue #14742: Don't include DirectoryTestCase from test_unparse in ↵Mark Dickinson2012-05-071-1/+1
| | | | test_tools until we can speed it up.
* Issue #14695: Run Tools/parser/test_unparse.py as part of test_tools.Mark Dickinson2012-05-071-0/+5
|
* #14508: make gprof2html script runnable under python3R David Murray2012-04-111-1/+24
| | | | | | | | | | Not that I haven't tested it to make sure it works, just that it can run against an empty source file. Initial patch by Popa.Claudiu. Here we also add a test (which uses mock, which is why I didn't check it in on 3.2).
* #14492: fix some bugs in Tools/scripts/pdeps.py.R David Murray2012-04-061-0/+27
| | | | Initial patch by Popa Claudiu.
* test_tools fix: don't import analyze_dxp if no _thread moduleR David Murray2012-04-051-0/+1
|
* #14490, #14491: add 'sundry'-style import tests for Tools/scripts.R David Murray2012-04-051-2/+43
| | | | | | This patch changes a few of the scripts to have __name__=='__main__' clauses so that they are importable without running. Also fixes the syntax errors revealed by the tests.
* Add test file for scripts in Tools (#13447).Éric Araujo2012-02-251-0/+39
When people find bugs in scripts such as reindent.py, msgfmt.py or pygettext.py, we have to try to reproduce the bug manually, apply a fix and test manually again. The alternative is to only read the code and trust that it works. This test file is a way to stop that unsatisfactory state of things and write proper unit tests instead.