test: Turn off buffering when executing directly

It can be a bit unepxected if results are not printed immediately, so
turn off buffering. We could possibly also reopen sys.stdout, but this
is good enough in many cases.
This commit is contained in:
Benjamin Berg 2022-05-20 14:28:30 +02:00
parent 267f5ea8d3
commit c64b020f99

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/python3 -u
# upower integration test suite
#