# "The command "pytest -s -vvv" exited with 1." error even with all test passed successfully

**URL:** <https://travis-ci.community/t/the-command-pytest-s-vvv-exited-with-1-error-even-with-all-test-passed-successfully/4096>\
**Category:** Python\
**Tags:** python, bug\
**Created:** [July 6, 2019, 12:11pm UTC](https://travis-ci.community/t/the-command-pytest-s-vvv-exited-with-1-error-even-with-all-test-passed-successfully/4096 "2019-07-06T12:11:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhiTronix](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/abhitronix/32/2184_2.png) [@abhiTronix](https://travis-ci.community/u/abhiTronix)\
**Post date:** [July 6, 2019, 12:11pm UTC](https://travis-ci.community/t/the-command-pytest-s-vvv-exited-with-1-error-even-with-all-test-passed-successfully/4096/1 "2019-07-06T12:11:30Z")

</div>

My Python-3.5 Travis job [https://travis-ci.com/abhiTronix/vidgear/jobs/213695560#L1939](https://travis-ci.com/abhiTronix/vidgear/jobs/213695560#L1939) failed with “_The command "pytest -s -vvv_” exited with 1." and “_Done. Your build exited with 1._” unknown error even all test passed without any whatsoever error or warning. I tried everything but nothing seems to work. Weirdly the Python 2.7 [https://travis-ci.com/abhiTronix/vidgear/jobs/213695559](https://travis-ci.com/abhiTronix/vidgear/jobs/213695559) environments built successfully with the same configuration but all the python3 environments(_i.e 3.5, 3.6 and 3.7_) failing with the same error every time. Please help!

Here is my Travis.yml configuration file: [https://github.com/abhiTronix/vidgear/blob/c86385748c216ecd5f056fbeff1c3afc330a64ec/.travis.yml](https://github.com/abhiTronix/vidgear/blob/c86385748c216ecd5f056fbeff1c3afc330a64ec/.travis.yml)

---

<div class="post-metadata">

**Author:** ![abhiTronix](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/abhitronix/32/2184_2.png) [@abhiTronix](https://travis-ci.community/u/abhiTronix)\
**Post date:** [July 6, 2019, 6:03pm UTC](https://travis-ci.community/t/the-command-pytest-s-vvv-exited-with-1-error-even-with-all-test-passed-successfully/4096/2 "2019-07-06T18:03:13Z")

</div>

### Temporary Workaround:

Downgrading to pytest-4.6.4 seems to works and all test are [passing on both python 2 and 3 environments](https://travis-ci.com/abhiTronix/vidgear/builds/118166116).

---

<div class="post-metadata">

**Author:** ![webknjaz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/webknjaz/32/34_2.png) [@webknjaz](https://travis-ci.community/u/webknjaz)\
**Post date:** [July 7, 2019, 11:31am UTC](https://travis-ci.community/t/the-command-pytest-s-vvv-exited-with-1-error-even-with-all-test-passed-successfully/4096/3 "2019-07-07T11:31:15Z")

</div>

Better report this on the pytest’s tracker

---

<div class="post-metadata">

**Author:** ![abhiTronix](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/abhitronix/32/2184_2.png) [@abhiTronix](https://travis-ci.community/u/abhiTronix)\
**Post date:** [July 7, 2019, 6:27pm UTC](https://travis-ci.community/t/the-command-pytest-s-vvv-exited-with-1-error-even-with-all-test-passed-successfully/4096/4 "2019-07-07T18:27:50Z")

</div>

@webknjaz, This issue is reported on pytest’s tracker and successfully resolved here: [https://github.com/pytest-dev/pytest/issues/5567](https://github.com/pytest-dev/pytest/issues/5567)
