
@test
def nostdin_1():
    check_output(['./nostdin'], 'Test', '')

@test(fail=True)
def nostdin_2_fail():
    check_output(['./nostdin'], 'Test', 'Bogus')

@test
def nostdout_1():
    check_output(['./nostdout'], 'Test', '')

@test(fail=True)
def nostdout_2_fail():
    check_output(['./nostdout'], 'Test', 'Bogus')


@test(fail=True)
def nostdin_1():
    check_output(['./nostdin'], 'Test', '')
    fail("The pipe didn't break, but that's okay")

@test(fail=True)
def nostdin_2_fail():
    check_output(['./nostdin'], 'Test', 'Bogus')

@test
def nostdout_1():
    check_output(['./nostdout'], 'Test', '')

@test(fail=True)
def nostdout_2_fail():
    check_output(['./nostdout'], 'Test', 'Bogus')

Mark broken pipe test with expected failure
Mark broken pipe test with expected failure

  
- @test
+ @test(fail=True)
  def nostdin_1():
      check_output(['./nostdin'], 'Test', '')
+     fail("The pipe didn't break, but that's okay")
  
  @test(fail=True)
  def nostdin_2_fail():
      check_output(['./nostdin'], 'Test', 'Bogus')
  
  @test
  def nostdout_1():
      check_output(['./nostdout'], 'Test', '')
  
  @test(fail=True)
  def nostdout_2_fail():
      check_output(['./nostdout'], 'Test', 'Bogus')
  
Mark broken pipe test with expected failure
## Code Before:

@test
def nostdin_1():
    check_output(['./nostdin'], 'Test', '')

@test(fail=True)
def nostdin_2_fail():
    check_output(['./nostdin'], 'Test', 'Bogus')

@test
def nostdout_1():
    check_output(['./nostdout'], 'Test', '')

@test(fail=True)
def nostdout_2_fail():
    check_output(['./nostdout'], 'Test', 'Bogus')

## Instruction:
Mark broken pipe test with expected failure
## Code After:

@test(fail=True)
def nostdin_1():
    check_output(['./nostdin'], 'Test', '')
    fail("The pipe didn't break, but that's okay")

@test(fail=True)
def nostdin_2_fail():
    check_output(['./nostdin'], 'Test', 'Bogus')

@test
def nostdout_1():
    check_output(['./nostdout'], 'Test', '')

@test(fail=True)
def nostdout_2_fail():
    check_output(['./nostdout'], 'Test', 'Bogus')
