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

Test failures in Windows due to newlines #193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Test failures in Windows due to newlines #193

wants to merge 1 commit into from

Conversation

native-api
Copy link

Example failure:

Failure
Traceback (most recent call last):
  File "C:\Python27\lib\unittest\case.py", line 329, in run
    testMethod()
  File "C:\Ivan\pystache\pystache\tests\test_examples.py", line 80, in test_delimiters
    """)
  File "C:\Ivan\pystache\pystache\tests\common.py", line 160, in assertString
    self.assertEqual(actual, expected, make_message("different characters"))
  File "C:\Python27\lib\unittest\case.py", line 513, in assertEqual
    assertion_func(first, second, msg=msg)
  File "C:\Python27\lib\unittest\case.py", line 924, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "C:\Python27\lib\unittest\case.py", line 410, in fail
    raise self.failureException(msg)
AssertionError: String mismatch: different characters

        Expected: """* It worked the first time.
* And it worked the second time.
* Then, surprisingly, it worked the third time.
"""
        Actual:   """* It worked the first time.
* And it worked the second time.
* Then, surprisingly, it worked the third time.
"""

        Expected: u'* It worked the first time.\n* And it worked the second time.\n* Then, surprisingly, it worked the third time.\n'
        Actual:   u'* It worked the first time.\r\n* And it worked the second time.\r\n* Then, surprisingly, it worked the third time.\r\n'

sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
* replaces deprecated fix in defunkt/pystache#193

Signed-off-by: Stephen L Arnold <[email protected]>
sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
* replaces deprecated fix in defunkt/pystache#193

Signed-off-by: Stephen L Arnold <[email protected]>
sarnold added a commit to freepn/pystache-fork that referenced this pull request Nov 9, 2020
* replaces deprecated fix in defunkt/pystache#193

Signed-off-by: Stephen L Arnold <[email protected]>
sarnold added a commit to sarnold/pystache that referenced this pull request Dec 16, 2020
* replaces deprecated fix in defunkt#193

Signed-off-by: Stephen L Arnold <[email protected]>
sarnold added a commit to sarnold/pystache that referenced this pull request Dec 16, 2020
* replaces deprecated fix in defunkt#193

Signed-off-by: Stephen L Arnold <[email protected]>
sarnold added a commit to sarnold/pystache that referenced this pull request Dec 16, 2020
* replaces deprecated fix in defunkt#193

Signed-off-by: Stephen L Arnold <[email protected]>
sarnold added a commit to sarnold/pystache that referenced this pull request Oct 18, 2021
* replaces deprecated fix in defunkt#193

Signed-off-by: Stephen L Arnold <[email protected]>
sarnold added a commit to sarnold/pystache that referenced this pull request Oct 18, 2021
* replaces deprecated fix in defunkt#193

Signed-off-by: Stephen L Arnold <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant