@mock_streams('stdout')
def test_puts_without_prefix():
 s = 'my output'
 puts(s, show_prefix=False)
 eq_(sys.stdout.getvalue(), ('%s' % (s + '\n')))

@ mock_streams ( 'stdout' ) def test_puts_without_prefix ( ) : s = 'my output' puts ( s , show_prefix = False ) eq_ ( sys . stdout . getvalue ( ) , ( '%s' % ( s + '\n' ) ) )
puts() shouldnt prefix output with env .