|
From: Geoff B. <geo...@gm...> - 2026-11-11 14:59:48
|
Hi all,
Bumping the minor version this time as there is new development.
Good news for anyone who's been struggling with TextTest in various
encodings over the years - it should now work to test programs that output
non-standard encodings. It does this by always respecting a BOM in any of
its files, and also by allowing you to configure it via a new
"file_encoding" config setting. It will default to assuming the locale
encoding for non-BOM files as before.
It will also support the recently released Python 3.15, which also changes
default encoding behaviour and hence meant we needed to do something about
encodings anyway. I chose the above somewhat larger change over patching it.
Will also update the documentation site in the coming days. Changelog below:
Regards,
Geoff Bache
New development:
Support for Python 3.15 (thanks Michael Behrisch)
- Stopped using the internal module sre_parse, and worked around strptime
now rejecting dates without a year when reconnecting.
Added new config setting "file_encoding".
- A mapping of file stems to the encoding used to read and write the
test's files. The default is "locale", i.e. the system's
preferred encoding, as before. A byte order mark (BOM) in a file always
overrides this setting.
- Encoding handling no longer depends on Python's UTF-8 mode, which is on
by default from Python 3.15. Filtered files keep their source
encoding, generated reports, XML and HTML are always UTF-8, and files
are transferred byte-for-byte to and from queue-system slaves.
- CaptureMock recordings (externalmocks, pythonmocks, httpmocks, traffic)
now default to UTF-8, which is what CaptureMock writes.
Windows installer is now built with the MSYS2 UCRT64 environment instead of
MINGW64/MSVCRT #162 (thanks Michael Behrisch)
- It still bundles the native MinGW diff tool rather than the MSYS one.
- The bundled Python no longer includes xmlrpc.server and http.cookies,
which are no longer needed by CaptureMock.
This also fixes failures when frozen TextTest uses an external
CaptureMock installation.
Bugfixes:
self-test cleanup: everything should be green out of the box now, including
on newer Pythons
Large runs hang on Windows: avoid TCP TIME_WAIT buildup in slave-to-master
connections, fix #159 (thanks Michael Behrisch)
Fix variant selection in static GUI reruns #167 (thanks Michael Behrisch)
Fix EC2 machine worker shutdown race (sporadic multicore failures) #168
(thanks Michael Behrisch)
Wait for all EC2 jobs and processes before final cleanup
Treat POSIX-style checkout paths (e.g. /c/...) as absolute on Windows
again, since Python 3.13's os.path.isabs no longer does - affects remote
running
Kill earlier collate_script processes in a pipeline if a later one can't be
started, so the sandbox can be removed on Windows
Virtual display (Xvfb) now works on macOS as well as Linux, and fails fast
if Xvfb exits instead of waiting for the timeout
|