<s> from subprocess import Popen , PIPE , STDOUT <EOL> def test_linkcheck ( tmpdir ) : <EOL> doctrees = tmpdir . join ( "<STR_LIT>" ) <EOL> htmldir = tmpdir . join ( "<STR_LIT:html>" ) <EOL> p = Popen ( [ <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , str ( doctrees ) , "<STR_LIT:source>" , str ( htmldir ) <EOL> ] , stdout = PIPE , stderr = STDOUT ) <EOL> stdout , _ = p . communicate ( ) <EOL> if not p . wait ( ) == <NUM_LIT:0> : <EOL> print ( stdout ) <EOL> def test_build_docs ( tmpdir ) : <EOL> doctrees = tmpdir . join ( "<STR_LIT>" ) <EOL> htmldir = tmpdir . join ( "<STR_LIT:html>" ) <EOL> p = Popen ( [ <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , str ( doctrees ) , "<STR_LIT:source>" , str ( htmldir ) <EOL> ] , stdout = PIPE , stderr = STDOUT ) <EOL> stdout , _ = p . communicate ( ) <EOL> if not p . wait ( ) == <NUM_LIT:0> : <EOL> print ( stdout ) </s>
