title: Microsoft azure devops python pipeline fails with Bash exited with code '5'
body: <p>I'm following the tutorial at <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python?view=azure-devops" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python?view=azure-devops</a>.</p>
  
  <p>Here is my azure-pipelines.yml file:</p>
  
  <pre><code># Python package
  # Create and test a Python package on multiple Python versions.
  # Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/python
  
  trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  strategy:
    matrix:
      Python27:
        python.version: '2.7'
      Python35:
        python.version: '3.5'
      Python36:
        python.version: '3.6'
      Python37:
        python.version: '3.7'
  
  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(python.version)'
    displayName: 'Use Python $(python.version)'
  
  - script: |
      python -m pip install --upgrade pip
      pip install -r requirements.txt
    displayName: 'Install dependencies'
  
  - script: |
      pip install pytest pytest-azurepipelines
      pytest
    displayName: 'pytest'
  </code></pre>
  
  <p>Running the pipeline fails with the following error message.</p>
  
  <blockquote>
    <p>Bash exited with code '5'.</p>
  </blockquote>
  
  <p>I enabled system diagnostics to add debug messages to the log.</p>
  
  <p>The error occurs in the pytest phase of the pipeline.
  <a href="https://i.stack.imgur.com/6DmoD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6DmoD.png" alt="enter image description here"></a></p>
  
  <p>The full log is available at <a href="https://github.com/michaelhochleitner/debug-azure-devops-python-pipeline/blob/master/log.txt" rel="nofollow noreferrer">https://github.com/michaelhochleitner/debug-azure-devops-python-pipeline/blob/master/log.txt</a>.</p>
  
  <p>How can I make the pipeline run without failing?</p>