[Notes] [Git][BuildStream/buildstream][bschubert/remove-pytest-runner] fixup! Remove dependency on pytest-runner



Title: GitLab

Benjamin Schubert pushed to branch bschubert/remove-pytest-runner at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • setup.py
    ... ... @@ -18,8 +18,6 @@
    18 18
     #  Authors:
    
    19 19
     #        Tristan Van Berkom <tristan vanberkom codethink co uk>
    
    20 20
     
    
    21
    -from distutils import log
    
    22
    -from distutils.errors import DistutilsError
    
    23 21
     import os
    
    24 22
     import re
    
    25 23
     import shutil
    
    ... ... @@ -257,8 +255,7 @@ class PyTest(TestCommand):
    257 255
             errno = pytest.main(shlex.split(self.addopts))
    
    258 256
     
    
    259 257
             if errno:
    
    260
    -            self.announce('Tests failed', log.ERROR)
    
    261
    -            raise DistutilsError('Tests failed')
    
    258
    +            raise SystemExit(errno)
    
    262 259
     
    
    263 260
     
    
    264 261
     def get_cmdclass():
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]