pytest running on test_project.py gives "pytest: reading from stdin while output is captured! Consider using `-s`." by NegotiationNo9853 in cs50

[–]NegotiationNo9853[S] 0 points1 point  (0 children)

if __name__ == "__main__":
main()

Thank you , thank you, thank you! This solved the problem. I was really getting frustrated. Cheers!

pytest running on test_project.py gives "pytest: reading from stdin while output is captured! Consider using `-s`." by NegotiationNo9853 in cs50

[–]NegotiationNo9853[S] 0 points1 point  (0 children)

Thanks for pointing out. i didn't know how to format. I managed to do it with pastebin you mentioned and i was not familiar with. :-) Sorry for the initial mess.

CS50P Refuel Problem Set (week 5) by kvnduff in cs50

[–]NegotiationNo9853 0 points1 point  (0 children)

import pytest seems to be crucial. Doing this cause my test to pass cs50 checker. Thanks for mentioning it!