Make Std X Error Think Needs Converted String Q43899684
![dev for nick [C:UsersBentePycharm ProjectsSoftware dev for nick] - ... section 1 lesson 1task1tests fe task.py fe_ini](https://media.cheggcdn.com/media/9f6/9f6bfc11-d333-4e16-aaf4-23d3b7339a53/image.png)


how to make the std.out == x not an error. i thinkbecause it needs to be converted to a string.
dev for nick [C:UsersBentePycharm ProjectsSoftware dev for nick] – … section 1 lesson 1task1tests fe task.py fe_init_.py te test_task.py * ta Helloworld.answer.py 1 import pytest import sys N w class TestClass: o def test_one(self): x = “hello world assert sys.stdout == x 00 6 X Tests failed: 1 of 1 test – 1 ms Launching pytest with arguments C:/Users/Bente/PycharmProjects/Software dev for nick/s EEEEEEEEE========= ============================= test session starts ======= platform win32 — Python 3.7.3, pytest-5.3.3, py-1.8.1, pluggy-0.13.1 — C:UsersBent cachedir: pytest_cache rootdir: C:UsersBente PycharmProjects Software dev for nicksection1lesson1task1te collecting … collected 1 item test_task.py::TestClass::test_one FAILED [100%] test task.py:4 (TestClass.test_one) <_pytest.capture. EncodedFile object at Ox0000019310737128> != hello world! o e BE Code Help 3 Software dev for nick ICAUserBente Pycharm Projects Software dev for nicks section tesson Task Tsk.py – PyCharm 0 – task py _init_py test_task.py Helloworld.answer py 1 W Print my name is nick print(“hello world”) Tack Description Follow the instruc • Hint – Hints can be adds Tab answer.py aml cache ру I Check test task.py 4 (TestClas pytest capture.Encode Expected hello wor Actualt <pytost. Compare Outputs + + + Q Tests failed: 1 of 1 test – Oms click to see difference Ome oms self lesson. task1. tests.test_task. TestClass Object at Oxbeege1268253BF28 Oms def test_one(self): x – “hello world print(x) assert sys.stdout us X AssertionError: assert pytest.capture. EncodedFile object at OxB0012682482438) “hello world! test task.py:8: AssertionError Python Console tes ago) 9 31 LF UTE rch Show transcribed image text dev for nick [C:UsersBentePycharm ProjectsSoftware dev for nick] – … section 1 lesson 1task1tests fe task.py fe_init_.py te test_task.py * ta Helloworld.answer.py 1 import pytest import sys N w class TestClass: o def test_one(self): x = “hello world assert sys.stdout == x 00 6
X Tests failed: 1 of 1 test – 1 ms Launching pytest with arguments C:/Users/Bente/PycharmProjects/Software dev for nick/s EEEEEEEEE========= ============================= test session starts ======= platform win32 — Python 3.7.3, pytest-5.3.3, py-1.8.1, pluggy-0.13.1 — C:UsersBent cachedir: pytest_cache rootdir: C:UsersBente PycharmProjects Software dev for nicksection1lesson1task1te collecting … collected 1 item test_task.py::TestClass::test_one FAILED [100%] test task.py:4 (TestClass.test_one) != hello world! o e BE
Code Help 3 Software dev for nick ICAUserBente Pycharm Projects Software dev for nicks section tesson Task Tsk.py – PyCharm 0 – task py _init_py test_task.py Helloworld.answer py 1 W Print my name is nick print(“hello world”) Tack Description Follow the instruc • Hint – Hints can be adds Tab answer.py aml cache ру I Check test task.py 4 (TestClas pytest capture.Encode Expected hello wor Actualt
Expert Answer
Answer to how to make the std.out == x not an error. i think because it needs to be converted to a string….
OR