I'm using python 2.7.1
I can duplicate your result with your script. But if you edit the script to:
if __name__ == "__main__":
"""docstring for main"""
assert 1 == 2
I see a result of: (also attached)
Assertion Error:
My expected behavior is the output your original script produces.
Thanks