tests: fixed test too dependent on actual exception wording

Authored by gracinet.

Description

tests: fixed test too dependent on actual exception wording

On one of the machines I use to run the tests prior to submission,
the default Python is 2.7.5, with the following wording:

must be encoded string without NULL bytes, not str

This third form (and possible future ones) are motivation to
use a wider catching regexp.

Details

Committed
gracinetFeb 21 2019, 5:23 AM
Parents
rHGe2472b12c842: contrib: enforce wrapping too-long lines with () instead of \
Branches
Unknown
Tags
Unknown