Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert diff does not handle newline #1553

Closed
Vogtinator opened this issue May 12, 2016 · 2 comments
Closed

Assert diff does not handle newline #1553

Vogtinator opened this issue May 12, 2016 · 2 comments

Comments

@Vogtinator
Copy link

@Vogtinator Vogtinator commented May 12, 2016

Source:

def test_diff2():
    assert "asdf" == "asdf2"

def test_diff():
    assert "asdf" == "asdf\n"

Output:

======================================= FAILURES ========================================
______________________________________ test_diff2 _______________________________________
test_diff.py:4: in test_diff2
    assert "asdf" == "asdf2"
E   assert 'asdf' == 'asdf2'
E     - asdf
E     + asdf2
E     ?     +
_______________________________________ test_diff _______________________________________
test_diff.py:7: in test_diff
    assert "asdf" == "asdf\n"
E   assert 'asdf' == 'asdf\n'
E       asdf
=============================== 2 failed in 0.01 seconds ================================

Environment: platform linux -- Python 3.5.1, pytest-2.9.1, py-1.4.31, pluggy-0.3.1

@nicoddemus
Copy link
Member

@nicoddemus nicoddemus commented May 12, 2016

Thanks for the report!

@The-Compiler
Copy link
Member

@The-Compiler The-Compiler commented Jun 22, 2016

Closing this as #1634 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.