Skip to content

Pytest AssertionError on Windows 10 for test_run_command_returns_echo #80

@Lancasterwu

Description

@Lancasterwu
____________________________________________ test_run_command_returns_echo ____________________________________________

    def test_run_command_returns_echo():
        """Checks that a single line is returned from command"""
        output, error = run.run_command('echo "Hello!"')
        assert error == b""
>       assert output == b"Hello!\n"
E       assert b'"Hello!"\r\n' == b'Hello!\n'
E         At index 0 diff: b'"' != b'H'
E         Use -v to get the full diff

tests\test_run.py:10: AssertionError

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions