8 Commits

Author SHA1 Message Date
Bruno Haible
51ec1c4157 Python: Update python-brace-format, assuming Python >= 3.1.
* gettext-tools/src/format-python-brace.c (struct toplevel_counters): New type.
(parse_directive): Take a 'struct toplevel_counters *' parameter. Allow empty
argument names at the top-level. But reject format strings with both absolute
argument numbers and unnamed arguments at the top-level.
(parse_upto): Take a 'struct toplevel_counters *' parameter.
(format_parse): Pass a 'struct toplevel_counters *' to parse_upto.
* gettext-tools/tests/format-python-brace-1: Update.
* gettext-tools/tests/format-python-brace-2: Add another test case.
* gettext-tools/doc/lang-python.texi: Add more examples of formatting with
positions.
2025-06-24 11:34:38 +02:00
Daiki Ueno
59d9b55bb2 tests: Use Exit instead of exit if init.sh is used
* gettext-tools/tests/*: Use Exit instead of exit, as suggested by
init.sh.
2016-06-08 15:28:49 +09:00
Daiki Ueno
2a644d7a28 tests: Improve test coverage 2014-05-14 16:47:58 +09:00
Daiki Ueno
ec84e32c72 tests: Undo the previous unintended file mode changes 2014-03-10 21:10:01 +09:00
Daiki Ueno
d66197a3ca tests: Remove unnecessary tempfile cleanup code
Cleanup code like "rm -fr $tmpfiles" are no longer needed, since
'init.sh' takes care of that.
2014-03-10 18:24:15 +09:00
Daiki Ueno
6c0abd26de gettext-tools: convert tests to use init.sh from Gnulib 2013-07-10 18:34:09 +09:00
Daiki Ueno
0be91fc24d Fix Python brace format test for added argument. 2013-05-02 06:47:48 +09:00
Daiki Ueno
6543f644bf Support Python brace format. 2013-04-26 18:54:39 +09:00