Revision a83e4de2 sdk/python/tests/test_arv_put.py

View differences:

sdk/python/tests/test_arv_put.py
347 347
    # Test for bug #11002
348 348
    def test_graceful_exit_while_repacking_small_blocks(self):
349 349
        def wrapped_commit(*args, **kwargs):
350
            raise SystemExit("Simulated error")
350
            raise KeyboardInterrupt("Simulated error")
351 351

  
352 352
        with mock.patch('arvados.arvfile._BlockManager.commit_bufferblock',
353 353
                        autospec=True) as mocked_commit:
......
359 359
            writer = arv_put.ArvPutUploadJob([self.small_files_dir],
360 360
                                             replication_desired=1)
361 361
            try:
362
                with self.assertRaises(SystemExit):
362
                with self.assertRaises(KeyboardInterrupt):
363 363
                    writer.start(save_collection=False)
364 364
            except AttributeError:
365 365
                self.fail("arv-put command is trying to use a corrupted BlockManager. See https://dev.arvados.org/issues/11002")

Also available in: Unified diff