# Print to Stdout from python tests with docker image

**URL:** <https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114>\
**Category:** Python\
**Created:** [November 24, 2019, 6:26pm UTC](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114 "2019-11-24T18:26:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewbluepiano](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@andrewbluepiano](https://travis-ci.community/u/andrewbluepiano)\
**Post date:** [November 24, 2019, 6:26pm UTC](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114/1 "2019-11-24T18:26:32Z")

</div>

Hi all.  
Title pretty much sums it up. Can’t get things printing from my test python stuff for the life of me. Using docker for stuff, so that’s kinda taking over the log, but I would think stdout would still appear.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 24, 2019, 8:42pm UTC](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114/2 "2019-11-24T20:42:56Z")

</div>

Please link to the build and pinpoint what exactly you are doing and getting and what you expect to be different.

My blind guess is you are running a command via `travis_wait` which gobbles up stdout and outputs it all after the command finishes.

---

<div class="post-metadata">

**Author:** ![andrewbluepiano](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@andrewbluepiano](https://travis-ci.community/u/andrewbluepiano)\
**Post date:** [November 24, 2019, 9:38pm UTC](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114/3 "2019-11-24T21:38:42Z")

</div>

It would be running tests on this: [https://travis-ci.com/twardokus/csec380-project](https://travis-ci.com/twardokus/csec380-project)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 24, 2019, 9:49pm UTC](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114/4 "2019-11-24T21:49:27Z")

</div>

I can see lots of output from `pytest ./test` in [https://travis-ci.com/twardokus/csec380-project/builds/137960455](https://travis-ci.com/twardokus/csec380-project/builds/137960455) just fine.

---

<div class="post-metadata">

**Author:** ![andrewbluepiano](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@andrewbluepiano](https://travis-ci.community/u/andrewbluepiano)\
**Post date:** [November 24, 2019, 9:50pm UTC](https://travis-ci.community/t/print-to-stdout-from-python-tests-with-docker-image/6114/5 "2019-11-24T21:50:30Z")

</div>

Right, but if I add in a print for the results of a requests item print(url.text), it won’t show up in the output. One sec, let me find a branch that has the issue.
