[Notes] [Git][BuildStream/buildstream][bschubert/remove-pytest-runner] fixup! fixup! fixup! 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
    ... ... @@ -19,6 +19,7 @@
    19 19
     #        Tristan Van Berkom <tristan vanberkom codethink co uk>
    
    20 20
     
    
    21 21
     from distutils.errors import DistutilsError
    
    22
    +import logging
    
    22 23
     import os
    
    23 24
     import re
    
    24 25
     import shutil
    
    ... ... @@ -256,8 +257,8 @@ class PyTest(TestCommand):
    256 257
             errno = pytest.main(shlex.split(self.addopts))
    
    257 258
     
    
    258 259
             if errno:
    
    259
    -            self.announce('Tests failed', log.ERROR)
    
    260
    -            raise DistutilsError(msg)
    
    260
    +            self.announce('Tests failed', logging.ERROR)
    
    261
    +            raise DistutilsError('Tests failed')
    
    261 262
     
    
    262 263
         @property
    
    263 264
         def _argv(self):
    



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