[Notes] [Git][BuildStream/buildstream][bschubert/remove-pytest-runner] 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
    ... ... @@ -233,9 +233,10 @@ class PyTest(TestCommand):
    233 233
                                  "dependencies"),
    
    234 234
         ]
    
    235 235
     
    
    236
    +    # pylint: disable=attribute-defined-outside-init
    
    236 237
         def initialize_options(self):
    
    237 238
             super().initialize_options()
    
    238
    -        self.addopts = ""  # pylint: disable=attribute-defined-outside-init
    
    239
    +        self.addopts = ""
    
    239 240
             self.index_url = None
    
    240 241
     
    
    241 242
         def run(self):
    
    ... ... @@ -255,8 +256,7 @@ class PyTest(TestCommand):
    255 256
             errno = pytest.main(shlex.split(self.addopts))
    
    256 257
     
    
    257 258
             if errno:
    
    258
    -            msg = 'Test failed: %s' % test.result
    
    259
    -            self.announce(msg, log.ERROR)
    
    259
    +            self.announce('Tests failed', log.ERROR)
    
    260 260
                 raise DistutilsError(msg)
    
    261 261
     
    
    262 262
         @property
    



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