"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/cli/test_errors.py" between
snapcraft-3.9.4.tar.gz and snapcraft-3.9.5.tar.gz

About: Snapcraft is a build and packaging tool that makes it easy to incorporate components from different sources and build technologies or solutions.

test_errors.py  (snapcraft-3.9.4):test_errors.py  (snapcraft-3.9.5)
skipping to change at line 173 skipping to change at line 173
exception._brief = "something's strange, in the neighborhood" exception._brief = "something's strange, in the neighborhood"
exception._resolution = "who you gonna call? ghostbusters!!" exception._resolution = "who you gonna call? ghostbusters!!"
# Test default. # Test default.
self.assertEquals(2, _get_exception_exit_code(exception)) self.assertEquals(2, _get_exception_exit_code(exception))
# Test override. # Test override.
exception._exit_code = 50 exception._exit_code = 50
self.assertEquals(50, _get_exception_exit_code(exception)) self.assertEquals(50, _get_exception_exit_code(exception))
class ReportableErrorTests(unit.TestCase):
def test_keyboard_interrupt(self):
exc_info = (KeyboardInterrupt, KeyboardInterrupt(), None)
self.assertFalse(_is_reportable_error(exc_info))
class ErrorsBaseTestCase(unit.TestCase): class ErrorsBaseTestCase(unit.TestCase):
def setUp(self): def setUp(self):
super().setUp() super().setUp()
self.useFixture(fixture_setup.FakeSnapcraftIsASnap()) self.useFixture(fixture_setup.FakeSnapcraftIsASnap())
patcher = mock.patch("sys.exit") patcher = mock.patch("sys.exit")
self.exit_mock = patcher.start() self.exit_mock = patcher.start()
self.addCleanup(patcher.stop) self.addCleanup(patcher.stop)
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)