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

elm-format tests fail on Windows #2925

Open
jayvdb opened this issue Jun 11, 2019 · 0 comments
Open

elm-format tests fail on Windows #2925

jayvdb opened this issue Jun 11, 2019 · 0 comments

Comments

@jayvdb
Copy link
Member

jayvdb commented Jun 11, 2019

______________________ ElmLintBearTest.test_bad_function ______________________
self = <tests.elm.ElmLintBearTest.ElmLintBearTest testMethod=test_bad_function>
    def test_bad_function(self):
        prepared = prepare_file(bad_file_function.splitlines(),
                                filename=None, create_tempfile=True)
    
        with prepared as (file, fname):
            self.check_results(
                self.uut,
                bad_file_function.splitlines(),
                [Result.from_values('ElmLintBear',
                                    message=result_message_bad_function,
                                    file=fname,
                                    line=6,
                                    severity=RESULT_SEVERITY.NORMAL)],
                filename=fname,
>               create_tempfile=False)
tests\elm\ElmLintBearTest.py:135: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox\py34-noskip-pip-npm-gem-go-perl-php-java8-adhoc-win-check-codecov\lib\site-packages\coalib\testing\LocalBearTestHelper.py:285: in check_results
    sorted(bear_output), sorted(results))
.tox\py34-noskip-pip-npm-gem-go-perl-php-java8-adhoc-win-check-codecov\lib\site-packages\coalib\testing\LocalBearTestHelper.py:138: in assertComparableObjectsEqual
    self.assertEqual(observed_result, expected_result)
E   AssertionError: Lists differ: [] != [<Result object(id=0xad4fdabc99ba422d83f08[728 chars]e70>]
E   
E   Second list contains 1 additional elements.
E   First extra element 0:
E   <Result object(id=0xad4fdabc99ba422d83f0858b9493b7a2, origin='ElmLintBear', affected_code=(<SourceRange object(start=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmplcowwzch', line=6, column=None) at 0x836f170>, end=<SourcePosition object(file='C:\\Users\\appveyor\\AppData\\Local\\Temp\\tmplcowwzch', line=6, column=None) at 0x836f6f0>) at 0x836faf0>,), severity=NORMAL, confidence=100, message='text (toString [four)\x1b[31m\n                         ^\x1b[0m\nI am looking for one of the following things:\n\n    ","\n    "]"\n    a field access like .name\n    an expression\n    an infix operator like +\n    an infix operator like `andThen`\n    more letters in this name\n    whitespace', aspect=NoneType, applied_actions={}) at 0x836fe70>
E   
E   Diff is 783 characters long. Set self.maxDiff to None to see it

https://ci.appveyor.com/project/jayvdb/coala-bears/builds/25185330/job/ab5vyu8usei0qpg2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant