Question: how to make the std.out == x not an error. i think because it needs to be converted to a string. dev for nick [C:UsersBentePycharm

 how to make the std.out == x not an error. i

think because it needs to be converted to a string. dev for

nick [C:\Users\Bente\Pycharm Projects\Software dev for nick] - ... \section 1 \lesson 1\task1\tests

how to make the std.out == x not an error. i think because it needs to be converted to a string.

dev for nick [C:\Users\Bente\Pycharm Projects\Software dev for nick] - ... \section 1 \lesson 1\task1\tests 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:\Users\Bent cachedir: pytest_cache rootdir: C:\Users\Bente PycharmProjects \Software dev for nick\section1\lesson1\task1\te 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!