From: Rong Jinhui Date: Mon, 12 Oct 2015 08:00:48 +0000 (+0800) Subject: Modify unit test case 'test_new_changes' in 'tests/test_changelog' X-Git-Tag: released-tools-18.01.7~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fc7936c4892d3be775232ff95c14cdc78646ef4;p=tools%2Fgbs.git Modify unit test case 'test_new_changes' in 'tests/test_changelog' file to adapt CentOS_6. Change-Id: Ib3833b98001a059a16b247e7c29a3726634f0dc3 Signed-off-by: Rong Jinhui --- diff --git a/tests/test_changelog.py b/tests/test_changelog.py index ea97063..e42da63 100644 --- a/tests/test_changelog.py +++ b/tests/test_changelog.py @@ -106,8 +106,9 @@ class TestChangelog(unittest.TestCase): def test_new_changes(self): """Test generating new .changes.""" - with assert_raises(GbsError): - eq_(GBS(argv=["gbs", "changelog"]), None) + assert_raises(GbsError, GBS, argv=["gbs", "changelog"]) + #with assert_raises(GbsError): + # eq_(GBS(argv=["gbs", "changelog"]), None) ok_(not os.path.exists(self.changes)) eq_(GBS(argv=["gbs", "changelog", "--since=HEAD~2"]), None)