Commit Graph

4 Commits

Author SHA1 Message Date
Serhiy Storchaka dfae912d80 Issue #15539: Fix backup file creation in pindent.py on Windows 2013-01-11 22:16:15 +02:00
Serhiy Storchaka 8cd7f82024 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
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.
2013-01-11 11:59:59 +02:00
doko@ubuntu.com 7a8634d8d8 backport from the trunk, to fix test_tools with srcdir != builddir
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.
2012-09-10 14:34:42 +02:00
Éric Araujo e84e263a84 Add test file for scripts in Tools (#13447).
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.
2012-02-25 16:24:59 +01:00