summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-161-523/+0
|
* Issue #21906: Make Tools/scripts/md5sum.py work in Python 3.Berker Peksag2014-07-111-9/+67
| | | | Patch by Zachary Ware.
* Issue #19713: Move away from using find_module/load_module.Eric Snow2014-01-041-4/+5
|
* Issue #15539: Fix a backup file creation in pindent.py on Windows.Serhiy Storchaka2013-01-111-0/+1
|\
| * Issue #15539: Fix a backup file creation in pindent.py on Windows.Serhiy Storchaka2013-01-111-0/+1
| |
* | Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.Serhiy Storchaka2013-01-111-1/+325
|\ \ | |/ | | | | | | | | | | Now pindent.py works with a "with" statement. pindent.py no longer produces improper indentation. pindent.py now works with continued lines broken after "class" or "def" keywords and with continuations at the start of line. Added regression tests for pindent.py. Modernized pindent.py.
| * Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.Serhiy Storchaka2013-01-111-1/+325
| | | | | | | | | | | | | | Now pindent.py works with a "with" statement. pindent.py no longer produces improper indentation. pindent.py now works with continued lines broken after "class" or "def" keywords and with continuations at the start of line. Added regression tests for pindent.py. Modernized pindent.py.
| * backport from the trunk, to fix test_tools with srcdir != builddirdoko@ubuntu.com2012-09-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | changeset: 77827:c23b442b5d5e user: Antoine Pitrou <solipsis@pitrou.net> date: Thu Jun 28 01:20:26 2012 +0200 summary: Avoid using scrdir, it's broken. changeset: 77826:f0e58e778215 user: Neil Schemenauer <nas@arctrix.com> date: Wed Jun 27 15:58:37 2012 -0600 summary: Fix bug in test_tools that prevented building is separate directory.
* | 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.