Serhiy Storchaka
69524821a8
bpo-33189: pygettext.py now accepts only literal strings (GH-6364)
...
as docstrings and translatable strings, and rejects
bytes literals and f-string expressions.
2018-04-19 09:23:03 +03:00
Serhiy Storchaka
c93938b5be
bpo-31920: Fixed handling directories as arguments in the ``pygettext`` script. (GH-6259)
...
Based on patch by Oleg Krasnikov.
2018-04-09 20:09:17 +03:00
Tobotimus
eee72d4778
bpo-32222: Fix pygettext skipping docstrings for funcs with arg typehints (GH-4745)
2018-02-27 00:48:14 +02:00
Serhiy Storchaka
7351f9e5a9
bpo-31174: Improve the code of test_tools.test_unparse. ( #4146 )
2017-10-27 15:35:11 +03:00
Victor Stinner
8e482bea21
bpo-31174: Fix test_tools.test_unparse ( #4102 )
...
test_unparse.DirectoryTestCase now stores the names sample to always
test the same files. It prevents false alarms when hunting reference
leaks.
2017-10-24 03:33:36 -07:00
Antoine Pitrou
88c60c9668
Trivial cleanups following bpo-31370 ( #3649 )
...
* Trivial cleanups following bpo-31370
* Also cleanup the "importlib._bootstrap_external" module
2017-09-18 23:50:44 +02:00
Mariatta
58f3c9dc8f
bpo-30109: Fix reindent.py (GH-1207)
...
Skip the file if it has bad encoding.
2017-04-19 22:59:20 -07:00
Victor Stinner
5de85a1702
bpo-29972: Skip tests known to fail on AIX ( #979 )
...
* 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()
2017-04-04 10:35:15 +02:00
Benjamin Peterson
4ce9e7a14a
merge 3.5
2016-09-12 22:09:39 -07:00
Berker Peksag
ac2d1c7153
Issue #27952 : Capture stderr in run_script()
2016-09-13 07:55:54 +03:00
Martin Panter
bdb847ae99
Issue #27952 : Merge fixcid.py from 3.5
2016-09-11 10:06:38 +00:00
Martin Panter
b7665386bc
Issue #27952 : Get fixcid.py working with the re module
2016-09-11 09:32:26 +00:00
Eric V. Smith
451d0e38fc
Issue 27948: Allow backslashes in the literal string portion of f-strings, but not in the expressions. Also, require expressions to begin and end with literal curly braces.
2016-09-09 21:56:20 -04:00
Yury Selivanov
d04e417b1e
tests: use subTest in test_unparse.test_files
2016-09-09 11:14:59 -07:00
Guido van Rossum
deed5a18ca
Issue #28038 : Remove Tools/parser/com2ann.py and its unit test.
...
Development is moving to https://github.com/ilevkivskyi/com2ann
2016-09-09 09:06:11 -07:00
Yury Selivanov
f8cb8a16a3
Issue #27985 : Implement PEP 526 -- Syntax for Variable Annotations.
...
Patch by Ivan Levkivskyi.
2016-09-08 20:50:03 -07:00
Benjamin Peterson
ff79396c83
fix skipping #27921 for windows
2016-09-05 11:13:07 -07:00
Eric V. Smith
06cf601e4f
Issue 27921: Remove backslash from another f-string. I'll revert this change before beta 2. I also need to look in to why test_tools/test_unparse fails with the files that are now being skipped.
2016-09-03 12:33:38 -04:00
Eric V. Smith
6a4efce7a5
Closes issue 27921: Disallow backslashes anywhere in f-strings. This is a 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.
2016-09-03 09:18:34 -04:00
Zachary Ware
613debcf0a
Merge with 3.5
2016-08-30 10:03:32 -05:00
Zachary Ware
5cf1c6cb62
Skip test_tools.test_i18n when pygettext.py is missing
2016-08-30 10:00:26 -05:00
Serhiy Storchaka
a6f26c1d34
Remove more unused imports in tests.
2016-04-25 00:05:30 +03:00
Serhiy Storchaka
e437a10d15
Issue #23277 : Remove unused imports in tests.
2016-04-24 21:41:02 +03:00
Serhiy Storchaka
597d15afe4
Issue #23277 : Remove unused support.run_unittest import.
2016-04-24 13:45:58 +03:00
Berker Peksag
1e8ee9b380
Issue #23277 : Remove unused sys and os imports
...
Patch by Jon Dufresne.
2016-04-24 07:31:42 +03:00
Serhiy Storchaka
b6a9c9761c
Issue #26778 : Fixed "a/an/and" typos in code comment, documentation and error
...
messages.
2016-04-17 09:39:28 +03:00
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 08:32:47 +03:00
Berker Peksag
d07a1cb53b
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:44 +02:00
Berker Peksag
d66dd5ce68
Issue #26489 : Add dictionary unpacking support to Tools/parser/unparse.py
...
Patch by Guo Ci Teo.
2016-03-06 16:50:15 +02:00
Eric V. Smith
608adf9c82
Issue 25180: Fix Tools/parser/unparse.py for f-strings. Patch by Martin Panter.
2015-09-20 15:09:15 -04:00
Eric V. Smith
edef3ebafa
Temporary hack for issue #25180 : exclude test_fstring.py from the unparse round-tripping, while I figure out how to properly fix it.
2015-09-19 15:49:57 -04:00
Berker Peksag
076dbd0560
Fix remaining tests and remove an unused import.
2015-05-06 07:01:52 +03:00
Berker Peksag
ce643913a9
Issue #9517 : Move script_helper to the support package.
...
Patch by Christie Wilson.
2015-05-06 06:33:17 +03:00
R David Murray
2b78129b3a
#18128 : use standard +NNNN timezone format in POT-Creation-Date header.
...
Patch by Michael McFadden, with a few small style tweaks.
2015-04-16 12:15:09 -04:00
Zachary Ware
f012ba42fe
Issue #22002 : Make full use of test discovery in test sub-packages.
...
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.
2014-07-23 12:00:29 -05:00
Zachary Ware
2b0a610297
Issue #21918 : Convert test_tools.py to a sub-package of test.
2014-07-16 14:26:09 -05:00