support/testing: make treq tests to ignore warning
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 11 Aug 2019 01:35:35 +0000 (22:35 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 11 Aug 2019 12:17:28 +0000 (14:17 +0200)
commitef5e87bb920fb0908c16b731670aa8124c0337b6
treee3576ac77adef383a3267ecbf5f4fc468932cef8
parent5ffd019e01558fdadfc5f2a5b957d556794ab00a
support/testing: make treq tests to ignore warning

Newer versions of python-treq display a warning at runtime when
service_identity is not installed:
"Without the service_identity module, Twisted can perform only
rudimentary TLS client hostname verification."

This warning message confuses the test that looks for another string in
stdout. Make the test ignore other messages while still expecting
"Connection refused".

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139449
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139450

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/tests/package/test_python_treq.py