Last active
August 29, 2015 13:57
-
-
Save Knio/9767214 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Tue 25 Mar 2014 10:37:50 AM PDT | |
tom@zkpq:~$ cat test.py | |
def test1(): | |
assert 'Hi\nThere' == \ | |
'''Hi | |
There''' | |
tom@zkpq:~$ unix2dos test.py | |
unix2dos: converting file test.py to DOS format ... | |
tom@zkpq:~$ python -m pytest test.py | |
[1m========================================================= test session starts =========================================================[0m | |
platform linux2 -- Python 2.7.3 -- py-1.4.20 -- pytest-2.5.2 | |
[1m | |
collecting 0 items[0m[1m | |
collecting 1 items[0m[1m | |
collected 1 items | |
[0m | |
test.py . | |
[32m[1m====================================================== 1 passed in 0.02 seconds =======================================================[0m | |
tom@zkpq:~$ ./bin/pypy/bin/pypy -m pytest test.py | |
[1m========================================================= test session starts =========================================================[0m | |
platform linux2 -- Python 2.7.3[pypy-2.2.1-final] -- py-1.4.20 -- pytest-2.5.2 | |
[1m | |
collecting 0 items[0m[1m | |
collecting 1 items[0m[1m | |
collected 1 items | |
[0m | |
test.py F | |
============================================================== FAILURES =============================================================== | |
________________________________________________________________ test1 ________________________________________________________________ | |
[1m def test1():[0m | |
[1m> assert 'Hi\nThere' == \[0m | |
[1m '''Hi[0m | |
[1m There'''[0m | |
[1m[31mE assert 'Hi\nThere' == 'Hi\r\nThere'[0m | |
[1m[31mE - Hi[0m | |
[1m[31mE + Hi\r[0m | |
[1m[31mE There[0m | |
test.py:2: AssertionError | |
[1m[31m====================================================== 1 failed in 0.05 seconds =======================================================[0m | |
tom@zkpq:~$ ./bin/pypy/bin/pypy -m pytest test.py --assert plain | |
[1m========================================================= test session starts =========================================================[0m | |
platform linux2 -- Python 2.7.3[pypy-2.2.1-final] -- py-1.4.20 -- pytest-2.5.2 | |
[1m | |
collecting 0 items[0m[1m | |
collecting 1 items[0m[1m | |
collected 1 items | |
[0m | |
test.py . | |
[32m[1m====================================================== 1 passed in 0.02 seconds =======================================================[0m | |
Script done on Tue 25 Mar 2014 10:39:09 AM PDT | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment