summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.7] bpo-36766: Typos in docs and code comments (GH-13116). (GH-13136)penguindustin2019-05-061-1/+1
| | | | | | | | | | | (cherry picked from commit 964663089547ca110199e23867b46b07ff4be88c) Co-authored-by: penguindustin <penguindustin@gmail.com> https://bugs.python.org/issue36766
* [3.7] bpo-14546: Fix the argument handling in Tools/scripts/lll.py ↵Miss Islington (bot)2019-05-021-0/+39
| | | | | | | (GH-13026) (GH-13060) (cherry picked from commit c4e78b116f9a4299f3b3bfbbd18ef49782bb1143) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406) (GH-8407)Miss Islington (bot)2018-07-231-4/+14
| | | | | | | | | | | | | When Python is installed on Windows, python -m test test_tools failed because it tried to run Tools\scripts\2to3.py which requires an argument. Skip this script. On other platforms or on Windows but when run from source code (not installed), the script is called "2to3" instead of "2to.py" and so was already skipped. Modify also the unit test to unload all modules which have been loaded by the test. (cherry picked from commit 752d4b7531093c55d6f0a5846748f981d79b29d3) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-33189: pygettext.py now accepts only literal strings (GH-6364)Miss Islington (bot)2018-04-191-6/+65
| | | | | | | as docstrings and translatable strings, and rejects bytes literals and f-string expressions. (cherry picked from commit 69524821a87251b7aee966f6e46b3810ff5aaa64) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-31920: Fixed handling directories as arguments in the ``pygettext`` ↵Miss Islington (bot)2018-04-091-1/+25
| | | | | | | | script. (GH-6259) Based on patch by Oleg Krasnikov. (cherry picked from commit c93938b5beea4c3f592119ebee6d4029558db8de) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints ↵Miss Islington (bot)2018-02-261-0/+88
| | | | | | | (GH-4745) (cherry picked from commit eee72d4778a5513038edd5236cdd87ccce2bc60a) Co-authored-by: Tobotimus <Tobotimus@users.noreply.github.com>
* bpo-31174: Improve the code of test_tools.test_unparse. (#4146)Serhiy Storchaka2017-10-271-8/+8
|
* bpo-31174: Fix test_tools.test_unparse (#4102)Victor Stinner2017-10-241-2/+13
| | | | | test_unparse.DirectoryTestCase now stores the names sample to always test the same files. It prevents false alarms when hunting reference leaks.
* Trivial cleanups following bpo-31370 (#3649)Antoine Pitrou2017-09-181-1/+0
| | | | | | * Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
* bpo-30109: Fix reindent.py (GH-1207)Mariatta2017-04-201-0/+7
| | | Skip the file if it has bad encoding.
* bpo-29972: Skip tests known to fail on AIX (#979)Victor Stinner2017-04-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | * bpo-29972: Fix test_eintr on AIX On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects 200 ms or longer. * bpo-29972: Skip some inet_pton() tests on AIX Skip some inet_pton() tests of test_socket on AIX. inet_pton() on AIX is less strict than on Linux and doesn't reject some invalid IP addresses. The unit tests test more the libc than Python itself. * bpo-29972: Skip tests known to fail on AIX * test_locale.test_strcoll_with_diacritic() * test_locale.test_strxfrm_with_diacritic() * test_strptime.test_week_of_year_and_day_of_week_calculation() * test_tools.test_POT_Creation_Date()
* merge 3.5Benjamin Peterson2016-09-131-1/+2
|\
| * Issue #27952: Capture stderr in run_script()Berker Peksag2016-09-131-1/+2
| |
* | Issue #27952: Merge fixcid.py from 3.5Martin Panter2016-09-111-0/+91
|\ \ | |/
| * Issue #27952: Get fixcid.py working with the re moduleMartin Panter2016-09-111-0/+91
| |
* | Issue 27948: Allow backslashes in the literal string portion of f-strings, ↵Eric V. Smith2016-09-101-5/+5
| | | | | | | | but not in the expressions. Also, require expressions to begin and end with literal curly braces.
* | tests: use subTest in test_unparse.test_filesYury Selivanov2016-09-091-2/+3
| |
* | Issue #28038: Remove Tools/parser/com2ann.py and its unit test.Guido van Rossum2016-09-091-260/+0
| | | | | | | | Development is moving to https://github.com/ilevkivskyi/com2ann
* | Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-091-0/+260
| | | | | | | | Patch by Ivan Levkivskyi.
* | fix skipping #27921 for windowsBenjamin Peterson2016-09-051-2/+1
| |
* | Issue 27921: Remove backslash from another f-string. I'll revert this change ↵Eric V. Smith2016-09-031-0/+10
| | | | | | | | before beta 2. I also need to look in to why test_tools/test_unparse fails with the files that are now being skipped.
* | Closes issue 27921: Disallow backslashes anywhere in f-strings. This is a ↵Eric V. Smith2016-09-031-4/+0
| | | | | | | | temporary restriction. In 3.6 beta 2, the plan is to again allow backslashes in the string parts of f-strings, but disallow them in the expression parts.
* | Merge with 3.5Zachary Ware2016-08-301-1/+5
|\ \ | |/
| * Skip test_tools.test_i18n when pygettext.py is missingZachary Ware2016-08-301-1/+5
| |
* | Remove more unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| |
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-243-4/+3
| |
* | Issue #23277: Remove unused support.run_unittest import.Serhiy Storchaka2016-04-241-1/+0
| |
* | Issue #23277: Remove unused sys and os importsBerker Peksag2016-04-242-2/+0
| | | | | | | | Patch by Jon Dufresne.
* | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka2016-04-171-1/+1
|\ \ | |/ | | | | messages.
| * Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
| |
* | Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.pyBerker Peksag2016-03-061-0/+5
|\ \ | |/ | | | | Patch by Guo Ci Teo.
| * Issue #26489: Add dictionary unpacking support to Tools/parser/unparse.pyBerker Peksag2016-03-061-0/+5
| | | | | | | | Patch by Guo Ci Teo.
* | Issue 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter.Eric V. Smith2015-09-201-2/+9
| |
* | Temporary hack for issue #25180: exclude test_fstring.py from the unparse ↵Eric V. Smith2015-09-191-0/+2
|/ | | | round-tripping, while I figure out how to properly fix it.
* Fix remaining tests and remove an unused import.Berker Peksag2015-05-061-1/+1
|
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-063-3/+3
| | | | Patch by Christie Wilson.
* #18128: use standard +NNNN timezone format in POT-Creation-Date header.R David Murray2015-04-161-0/+68
| | | | Patch by Michael McFadden, with a few small style tweaks.
* Issue #22002: Make full use of test discovery in test sub-packages.Zachary Ware2014-07-231-8/+2
| | | | | | Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
* Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-169-0/+884