Stan Ulbrych
fed61fbb8b
Fix new test
2025-06-19 17:24:50 +01:00
Stan Ulbrych
23e4a6f0e5
Merge branch 'main' into improve-find
2025-06-19 17:24:07 +01:00
Stan Ulbrych
307c7f33d0
Skip unsupported locales
2025-06-19 17:09:53 +01:00
Stan Ulbrych
ff7d10a36a
Clean up confusion
2025-06-19 16:01:00 +01:00
Stan Ulbrych
7e2a5645d0
Clean up
2025-06-19 15:39:34 +01:00
Stan Ulbrych
d75292d33e
Who even uses this "Windows" thing...?
2025-06-19 15:37:57 +01:00
Stan Ulbrych
c40039fa3d
Review
2025-06-19 15:20:29 +01:00
Daniel Hollas
cae660d6dc
gh-118761: Add test_lazy_import for more modules ( #133057 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2025-05-05 22:46:05 +00:00
Tomas R.
474f296718
gh-130655: Add a test for big-endian MO files in gettext (GH-132469)
2025-05-01 14:13:08 +03:00
Stan Ulbrych
c85d0c26ad
Serhiy's review
2025-04-30 21:04:23 +01:00
Tomas R.
4d58c8cb24
gh-130320: gettext: Test fallback translations (GH-130321)
2025-04-10 14:56:21 +03:00
Stan Ulbrych
4f3734269d
Tomas's suggestion + typo spotted while testing
2025-04-05 13:52:48 +01:00
Tomas R.
a126cefc17
gh-130655: Add a test for corrupt .mo files in gettext ( #131911 )
2025-04-04 13:26:59 +00:00
Tomas R.
16a6270aa6
gh-130655: Add a test for bad magic numbers in .mo files parsed by gettext ( #131909 )
2025-04-04 13:26:15 +00:00
Filipe LaĂns đ”đž
6ab4acecf9
GH-131770: increase assumed WASI stack size to 131072 (wasi-sdk default) ( #131844 )
...
e9524a0980/libc-top-half/musl/src/internal/pthread_impl.h (L220)
Signed-off-by: Filipe LaĂns <lains@riseup.net>
2025-04-04 09:34:02 +01:00
Stan Ulbrych
f9851e12a9
Tomas's feedback
2025-03-31 18:14:00 +01:00
Stan Ulbrych
fcce7bd887
Initial
2025-03-19 17:33:35 +00:00
Stan Ulbrych
3118693a1a
gh-130655: Add tests for gettext.find() (GH-130691)
...
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
2025-03-19 11:52:03 +01:00
Tomas R.
24c52cb14c
gh-130655: Increase test coverage of gettext._expand_lang() (GH-130656)
2025-02-28 10:40:36 +02:00
Tomas R.
fb2d325725
gh-130193: Increase test coverage of gettext.c2py (GH-130208)
2025-02-17 10:57:34 +02:00
Tomas R.
2e8044a4f7
gh-130177: Fix unintentionally skipped tests in test_gettext (GH-130178)
2025-02-16 14:14:37 +02:00
Tomas R.
0f20281fa2
gh-107510: gettext: Remove unnecessary tests (GH-127965)
...
There are now separate pygettext tests.
2025-02-14 12:16:10 +00:00
Serhiy Storchaka
38bd2c520a
gh-88434: Emit deprecation warnings for non-integer numbers in gettext if translation not found (GH-110574)
2023-10-14 09:07:02 +03:00
Serhiy Storchaka
326c6c4e07
gh-110519: Improve deprecation warning in the gettext module ( #110520 )
...
Deprecation warning about non-integer numbers in gettext now always refers
to the line in the user code where gettext function or method is used.
Previously, it could refer to a line in gettext code.
Also, increase test coverage for NullTranslations and domain-aware functions
like dngettext().
2023-10-09 15:45:22 +02:00
Serhiy Storchaka
1aad4fc5db
gh-109864: Make test_gettext tests order independent (GH-109866)
2023-10-07 16:00:28 +03:00
Tomas R
b3c34e55c0
gh-62519: Make pgettext search plurals when translation is not found ( #107118 )
...
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
2023-07-23 16:08:28 +02:00
Gilles BassiĂšre
54632528ee
bpo-18319: gettext() can retrieve a message even if a plural form exists ( #19869 )
2023-07-23 11:59:19 +02:00
Serhiy Storchaka
086c6b1b0f
bpo-45046: Support context managers in unittest (GH-28045)
...
Add methods enterContext() and enterClassContext() in TestCase.
Add method enterAsyncContext() in IsolatedAsyncioTestCase.
Add function enterModuleContext().
2022-05-08 17:49:09 +03:00
Dong-hee Na
14ba761078
bpo-44235: Remove deprecated functions in the gettext module. (GH-26378)
2021-05-30 10:29:45 +09:00
Victor Stinner
fbf43f051e
bpo-41521: Rename blacklist parameter to not_exported (GH-21824)
...
Rename "blacklist" parameter of test.support.check__all__() to
"not_exported".
2020-08-17 07:20:40 +02:00
Hai Shi
96a6a6d42b
bpo-40275: Use new test.support helper submodules in tests (GH-21412)
2020-07-09 15:25:10 +02:00
Victor Stinner
8f4ef3b019
Remove unused imports in tests (GH-14518)
2019-07-01 18:28:25 +02:00
Julien Palard
afd1e6d2f0
bpo-36239: Skip comments in gettext infos (GH-12255)
2019-05-09 16:22:15 +02:00
Cheryl Sabella
637a33b996
bpo-2504: Add pgettext() and variants to gettext. (GH-7253)
2018-11-07 16:12:20 +02:00
Serhiy Storchaka
fec35c99aa
bpo-33710: Deprecate l*gettext() and related functions in the gettext module. (GH-10139)
...
They return encoded bytes and are Python 2 artifacts.
2018-10-27 08:00:41 +03:00
Serhiy Storchaka
26cb4657bc
bpo-29755: Fixed the lgettext() family of functions in the gettext module. ( #2266 )
...
They now always return bytes.
Updated the gettext documentation.
2017-06-20 17:13:29 +03:00
Serhiy Storchaka
f6595983e0
bpo-28692: Deprecate using non-integer value for selecting a plural form in gettext. ( #507 )
2017-03-12 13:15:01 +02:00
Serhiy Storchaka
39d2dfef44
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:30:36 +02:00
Serhiy Storchaka
5ae6c776a8
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:29:59 +02:00
Serhiy Storchaka
5ca92ab3d2
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:25:56 +02:00
Serhiy Storchaka
60ac989d6f
Issue #28563 : Make plural form selection more lenient and accepting
...
non-integer numbers. Django tests depend on this.
2016-11-14 19:22:12 +02:00
Serhiy Storchaka
1c9bd1d8ec
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:27:17 +02:00
Serhiy Storchaka
eb20fcae14
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:26:14 +02:00
Serhiy Storchaka
1c3fdd900d
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:20:09 +02:00
Serhiy Storchaka
07bcf05fcf
Issue #28563 : Fixed possible DoS and arbitrary code execution when handle
...
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
2016-11-08 21:17:46 +02:00
Serhiy Storchaka
e437a10d15
Issue #23277 : Remove unused imports in tests.
2016-04-24 21:41:02 +03:00
Martin Panter
d226d308a3
Issue #23883 : Add test.support.check__all__() and test gettext.__all__
...
Patches by Jacek KoĆodziej.
2015-11-14 11:47:00 +00:00
Andrew Kuchling
19ddaf6d40
Merge from 3.4
2015-04-14 10:35:43 -04:00
Andrew Kuchling
8b963c5853
#17898 : reset k and v so that the loop doesn't use an old value
2015-04-13 10:38:56 -04:00
Antoine Pitrou
be8d06f523
Issue #18216 : gettext now raises an error when a .mo file has an unsupported major version number. Patch by Aaron Hill.
2014-10-28 20:17:51 +01:00