Skip to content

Instantly share code, notes, and snippets.

@dezgeg
Created October 22, 2013 13:20
Show Gist options
  • Save dezgeg/7100647 to your computer and use it in GitHub Desktop.
Save dezgeg/7100647 to your computer and use it in GitHub Desktop.
import sys
testRunDelim = '======================================================================'
testsRan = 0
try:
while True:
line = sys.stdin.readline()
if testRunDelim in line:
testsRan = 0
elif line == "\n":
testsRan += 1
if testsRan < 6:
sys.stdout.write(line)
except KeyboardInterrupt:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment