def test_threadout_install_deinstall():
old = sys.stdout
out = ThreadOut(sys, 'stdout')
-> out.deinstall()
assert old == sys.stdout